css控制js事件的属性,pointer-events,touch-action

在css3中有两个控制js事件行为的属性

1、 pointer-events:属性指定在什么情况下 (如果有) 某个特定的图形元素可以成为鼠标事件的 target

这个属性主要应用在SVG元素上,这篇文章主要介绍的是应用在HTML的DOM元素上

语法:
pointer-events: auto | none | inherit | initial | unset;

  • auto:自动表示使用DOM的默认行为。
  • none:表示该元素不执行任何的js事件,包括其后代元素。但是,当其后代元素的此属性指定其他值时,鼠标事件可以指向后代元素,在这种情况下,鼠标事件将在捕获或冒泡阶段触发父元素的事件侦听器。
  • inherit:表示继承父级的pointer-events的值。
  • initial:初始化,和auto效果一样,表示执行元素的默认行为。
  • unset:未定义,继承父级行为。

兼容性:
pointer-events
查看兼容性详情

查看案例 Demo

2、touch-action:用于设置触摸屏用户如何操纵元素的区域(例如,浏览器内置的缩放功能)。

touch-action是控制手势事件过滤的CSS属性,为开发人员提供了一种声明性机制,以有选择地禁用触摸滚动(在一个或两个轴上)或双击缩放

语法:
touch-action: auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation;

  • auto:初始化值,表示根据浏览器决定当用户触控事件发生时执行默认行为。
  • none:禁用touch事件,表示把元素上的触屏事件行为禁用,当用户在元素上触发触控行为时不进行任何操作。
  • pan-x:表示只开启x轴的滑动行为,也就是左右滑动。
  • pan-left:表示只开启元素向左滑动。

兼容性:
touch-action
查看兼容性详情

查看案例 Demo

<div class="wfPanelContainer" style="inset: 0px;"><div class="geDiagramContainer geDiagramBackdrop" tabindex="0" style="inset: 0px 0px 10px; touch-action: auto; cursor: default; overflow: auto;"><div style="position: absolute; border-width: 1px; overflow: hidden; left: 0px; top: 0px; width: 1298px; height: 643px; border-color: rgb(255, 255, 255); border-style: solid; background-color: rgb(255, 255, 255); background-image: none;" class="geBackgroundPage"></div><div class="wfGroupsContainer" id="wfGroupsContainer" style="top: 0px; left: 0px; width: 1287px; height: 644px; position: absolute;"></div><svg style="width: 1299px; height: 100%; display: block; min-width: 1299px; min-height: 644px; z-index: 2; position: absolute; background-image: none;"><g><g></g><g><g transform="translate(0.5,0.5)" style="visibility: visible;"><ellipse cx="102" cy="102" rx="46.5" ry="46.5" fill="#bff3c3" stroke="#5abd6b" pointer-events="all"></ellipse></g><g style=""><g transform="translate(57,96)"><foreignObject style="overflow:visible;" pointer-events="all" width="90" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 92px; text-align: center;" title="申请"><div class="wf-nodeName" title="申请"><div class="wf-word-line" id="wf-word-line-16" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">申请</div></div><div class="wf-nodeIcons" style="height: 16px;"><span class="icon-workflow-ceshi" style="color: rgb(90, 189, 107); float: right;"></span></div><div class="wf-nodeOperations" style="height: 16px;"><span class="icon-workflow-caozuohou" style="float: right;"></span><span class="icon-workflow-caozuoqian" style="float: left;"></span></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 280 55 L 335 105 L 280 155 L 225 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(227,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="组织负责人"><div class="wf-nodeName" title="组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-17" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 450 55 L 505 105 L 450 155 L 395 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(397,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="上级组织负责人"><div class="wf-nodeName" title="上级组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-18" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">上级组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 620 55 L 675 105 L 620 155 L 565 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(567,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="间接上级组织负责人"><div class="wf-nodeName" title="间接上级组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-19" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">间接上级组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 55 L 845 105 L 790 155 L 735 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="资产会计"><div class="wf-nodeName" title="资产会计" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-20" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">资产会计</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 55 L 1015 105 L 960 155 L 905 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(907,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务主管"><div class="wf-nodeName" title="财务主管" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-21" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务主管</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 185 L 1015 235 L 960 285 L 905 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(907,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务总监"><div class="wf-nodeName" title="财务总监" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-22" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务总监</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 185 L 845 235 L 790 285 L 735 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="分管领导"><div class="wf-nodeName" title="分管领导" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-23" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">分管领导</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 620 185 L 675 235 L 620 285 L 565 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(567,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="总经理"><div class="wf-nodeName" title="总经理" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-24" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">总经理</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"><span class="icon-workflow-caozuohou" style="float: right;"></span><span class="icon-workflow-caozuoqian" style="float: left;"></span></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 450 185 L 505 235 L 450 285 L 395 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(397,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务会计制单"><div class="wf-nodeName" title="财务会计制单" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-25" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务会计制单</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><ellipse cx="272" cy="232" rx="46.5" ry="46.5" fill="#bff3c3" stroke="#5abd6b" pointer-events="all"></ellipse></g><g style=""><g transform="translate(227,226)"><foreignObject style="overflow:visible;" pointer-events="all" width="90" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 92px; text-align: center;" title="归档"><div class="wf-nodeName" title="归档"><div class="wf-word-line" id="wf-word-line-26" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">归档</div></div><div class="wf-nodeIcons" style="height: 16px;"><span class="icon-workflow-tingzhi" style="color: rgb(90, 189, 107); float: right;"></span></div><div class="wf-nodeOperations" style="height: 16px;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 340 L 845 390 L 790 440 L 735 390 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,384)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="最高领导层审批"><div class="wf-nodeName" title="最高领导层审批" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-27" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">最高领导层审批</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 148 102 L 218.63 102" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 148 102 L 218.63 102" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 223.88 102 L 216.88 105.5 L 218.63 102 L 216.88 98.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 335 105 L 388.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 335 105 L 388.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 393.88 105 L 386.88 108.5 L 388.63 105 L 386.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 505 105 L 558.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 505 105 L 558.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 563.88 105 L 556.88 108.5 L 558.63 105 L 556.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 675 105 L 728.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 675 105 L 728.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 733.88 105 L 726.88 108.5 L 728.63 105 L 726.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 845 105 L 898.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 845 105 L 898.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 903.88 105 L 896.88 108.5 L 898.63 105 L 896.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 960 155 L 960 178.63" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 960 155 L 960 178.63" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 960 183.88 L 956.5 176.88 L 960 178.63 L 963.5 176.88 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 905 240 L 851.37 240" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 905 240 L 851.37 240" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 846.12 240 L 853.12 236.5 L 851.37 240 L 853.12 243.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 735 235 L 681.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 735 235 L 681.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 676.12 235 L 683.12 231.5 L 681.37 235 L 683.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 565 235 L 511.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 565 235 L 511.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 506.12 235 L 513.12 231.5 L 511.37 235 L 513.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 395 235 L 324.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 395 235 L 324.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 319.12 235 L 326.12 231.5 L 324.37 235 L 326.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 445 285 L 445 305 L 267 305 L 267 284.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 445 285 L 445 305 L 267 305 L 267 284.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 267 279.12 L 270.5 286.12 L 267 284.37 L 263.5 286.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 620 285 L 620 350 L 90 350 L 90 154.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 620 285 L 620 350 L 90 350 L 90 154.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 90 149.12 L 93.5 156.12 L 90 154.37 L 86.5 156.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 735 390 L 456 390 L 456 291.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 735 390 L 456 390 L 456 291.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 456 286.12 L 459.5 293.12 L 456 291.37 L 452.5 293.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 285 L 960 390 L 851.37 390" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 960 285 L 960 390 L 851.37 390" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 846.12 390 L 853.12 386.5 L 851.37 390 L 853.12 393.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><rect x="280" y="170" width="150" height="100" fill="none" stroke="white" pointer-events="stroke" visibility="hidden" stroke-width="9"></rect><rect x="280" y="170" width="150" height="100" fill="none" stroke="none" pointer-events="all"></rect></g><g style=""><g transform="translate(282,214)"><foreignObject style="overflow:visible;" pointer-events="all" width="147" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; overflow-wrap: normal; border: 1px solid transparent; white-space: pre-wrap; width: 149px; max-height: 110px; margin-top: 0px; overflow: hidden; text-align: center;" title="出售"><div class="wf-nodeName" title="出售" style="word-break: break-word; max-height: 100px;"><div class="wf-word-line" id="wf-word-line-28" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;white-space:pre-wrap;text-align:left;">出售</div></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><rect x="280" y="270" width="150" height="100" fill="none" stroke="white" pointer-events="stroke" visibility="hidden" stroke-width="9"></rect><rect x="280" y="270" width="150" height="100" fill="none" stroke="none" pointer-events="all"></rect></g><g style=""><g transform="translate(282,314)"><foreignObject style="overflow:visible;" pointer-events="all" width="147" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; overflow-wrap: normal; border: 1px solid transparent; white-space: pre-wrap; width: 149px; max-height: 110px; margin-top: 0px; overflow: hidden; text-align: center;" title="报废"><div class="wf-nodeName" title="报废" style="word-break: break-word; max-height: 100px;"><div class="wf-word-line" id="wf-word-line-29" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;white-space:pre-wrap;text-align:left;">报废</div></div></div></foreignObject></g></g></g><g></g><g></g></g></svg></div></div> 参考这段代码 实现功能
最新发布
11-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值