当前位置: 首页 > news >正文

菏泽正耀网站建设公司怎么样删掉wordpress主题

菏泽正耀网站建设公司怎么样,删掉wordpress主题,北京seo网站诊断,余杭区网站建设设计公司一般用于图片打印文字或图片的坐标获取,代码来自AI有改动。 功能#xff1a;本地图选择后不上传直接可比划线条作为对角线得到矩形#xff0c;动态显示坐标 按下鼠标开始松开鼠标结束。有细微BUG但不影响坐标获取。 !DOCTYPE html html langen本地图选择后不上传直接可比划线条作为对角线得到矩形动态显示坐标 按下鼠标开始松开鼠标结束。有细微BUG但不影响坐标获取。 !DOCTYPE html html langen headmeta charsetUTF-8meta nameviewport contentwidthdevice-width, initial-scale1.0titleDraw Rectangle on Image/titlestyle#container {position: relative;display: inline-block;border: 1px solid #333;cursor: crosshair;overflow: hidden;}.rectangle {position: absolute;border: 1px dashed red;background-color: rgba(255, 0, 0, 0.1);}textarea {width: 100%;height: 80px;margin-top: 10px;font-family: monospace;}/style /head bodyh2Draw Rectangle and Track Position/h2input typefile idimageUpload acceptimage/*div idcontainer/divh3Current Rectangle Info/h3textarea idcurrentInfo readonlyX: -, Y: -, Width: -, Height: -/textareah3Log of Rectangles/h3textarea idlogInfo readonly/textareascriptconst container document.getElementById(container);const imageUpload document.getElementById(imageUpload);const currentInfo document.getElementById(currentInfo);const logInfo document.getElementById(logInfo);let startX, startY, rect, isDrawing false;// Change the background image when a file is uploaded and adjust container sizeimageUpload.addEventListener(change, (event) {const file event.target.files[0];if (file) {const reader new FileReader();reader.onload (e) {const img new Image();img.onload () {container.style.width ${img.width}px;container.style.height ${img.height}px;container.style.backgroundImage url(${e.target.result});};img.src e.target.result;};reader.readAsDataURL(file);}});container.addEventListener(mousedown, (event) {// Remove any previous rectangle and reset infoif (rect) {rect.remove();}currentInfo.value X: -, Y: -, W: -, H: -;// Start drawing the rectanglestartX event.offsetX;startY event.offsetY;isDrawing true;// Create a new rectangle elementrect document.createElement(div);rect.classList.add(rectangle);rect.style.left ${startX}px;rect.style.top ${startY}px;rect.style.width 0px;rect.style.height 0px;container.appendChild(rect);});container.addEventListener(mousemove, (event) {if (!isDrawing) return;// Calculate current width and height based on mouse positionconst currentX event.offsetX;const currentY event.offsetY;const width Math.abs(currentX - startX);const height Math.abs(currentY - startY);// Set rectangle position and size based on mouse directionrect.style.left ${Math.min(startX, currentX)}px;rect.style.top ${Math.min(startY, currentY)}px;rect.style.width ${width}px;rect.style.height ${height}px;// Update the current info displaycurrentInfo.value X: ${Math.min(startX, currentX)}, Y: ${Math.min(startY, currentY)}, W: ${width}, H: ${height};});container.addEventListener(mouseup, (event) {if (!isDrawing) return;isDrawing false;// Record the final rectangle detailsconst finalX parseInt(rect.style.left);const finalY parseInt(rect.style.top);const finalWidth parseInt(rect.style.width);const finalHeight parseInt(rect.style.height);// Append the log information to the logInfo textarealogInfo.value Rectangle - X: ${finalX}, Y: ${finalY}, W: ${finalWidth}, H: ${finalHeight}\n;// Stop drawing for a new sessionisDrawing false;});/script /body /html
http://www.hkea.cn/news/14393456/

相关文章:

  • 河北省建设安全监督站的网站网站建设及推广套餐
  • 本省网站建设建议嘉定网络公司
  • 重庆博达建设集团股份有限公司网站python工程打包供网站开发调用
  • 使用ai做网站设计免费发布信息不收费的网站
  • 泊头市做网站价格新网站百度seo如何做
  • 济宁门户网站建设万家灯火营销型网站
  • 网站视觉首页怎么做佛山网站建设过程
  • 购物网站制作样例wordpress后台使用方法
  • wordpress默认用某一号字体seo是什么意思以及怎么做
  • 做网站买过域名之后重庆公司章程如何查询下载
  • 网站开发没有完成 需要赔偿多少梧州论坛手机红豆网
  • 崇明苏州网站建设国外网页设计欣赏
  • 佛山外贸网站建设平台那个网站直接回做二手发电机
  • 怎么做产品网站河北中尊建设工程有限公司官方网站
  • 网站建设单页面推广模板百度小说风云排行榜
  • 工作网站建设中布线费用账务处理跳出率 网站
  • 企业网站建设的几种形式重庆企业网站营销设计
  • 高端的网站设计制作搜索引擎有哪些网站
  • 电商网站开发怎么样汕头企业网站推广技巧
  • 网站建设文字资料餐饮品牌设计服务
  • 学院网站群建设方案衣服网站建设规划书
  • 企业网站软件东莞市建设工程信息服务协会
  • 什么是门户网站有哪些福建省网站备案用户注销(删除)备案申请表
  • 东台网站制作西安市建设工程信息网招投标业务平台
  • 网站开发工程师求职信外贸怎样做网站
  • 北京网站设计公司兴田德润优惠吗厦门seo
  • 网站怎样做地理位置定位石家庄的设计公司
  • 展览会建设网站平台的作用阿里巴巴做网站
  • 织梦网站后台一键更新没反应自己免费建站平台推荐
  • 安徽合肥制作网站公司哪家好网站做聚合页面