且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

css或xpath selector:具有任何具有特定值的属性的元素

更新时间:2023-01-17 18:37:30

CSS没有定义一个以通配符作为其名称的属性选择器。

CSS does not define an attribute selector that takes a wildcard as its name.

XPath,但是。以下表达式应该可以工作:

XPath, however, does. The following expression should work:

//*[@*="foo"]