Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有一个 svg 路径 <path......d="m 100.03365,51.648383 28.346,0 0,-28.346 -28.346,0 0,28.346" inkscape:label="figure_01"></path> 我想要的只是使用属性选择器选择他,就像$('path[inkscape:label*="figure"]')它不起作用(据我所知,它不应该因为“:”被保留用于更棒的东西) . 有没有办法绕过这个而不编辑 svg 本身?
<path
d="m 100.03365,51.648383 28.346,0 0,-28.346 -28.346,0 0,28.346" inkscape:label="figure_01"></path>
$('path[inkscape:label*="figure"]')
尝试转义:符号?
:
$('path[inkscape\\:label*="figure"]')