我的字段名称很少,如:
fields[some_name][1][indicator]
fields[some_name][2][indicator]
...
fields[some_name][N][indicator]
如何为所有此类字段编写 CSS 样式,例如:
input[name='fields[some_name][*][indicator]'] {...}
谢谢!
答案 0 :(得分:1)
您可以尝试:
input[name^='fields[some_name]'][name$='[indicator]'] {...}
甚至更受限制:
input[name^='fields[some_name]['][name$='][indicator]'] {...}