关于 html:每种输入类型的通配符选择器 | 珊瑚贝

Wildcard selector for each input type


我想知道 input[type=””].

是否有任何通配符选择器

类似于 input[type=”*”]?

  • 可能重复 SCSS/CSS 选择器以选择所有输入类型
  • 请参阅此处的第 3 行:w3.org/TR/css3-selectors/#selectors


是的,没有价值

1
2
3
 input[type] {

 }

它针对所有具有 type 属性的输入,该属性有或没有值。


您可以使用以下命令定位所有输入类型:

1
2
3
input[type]{

}

更多详情:Stackoverflow 上的回答链接

  • 将来,如果您发现重复的问题,请将问题标记为重复,而不是发布链接到其他问题的答案。


来源:https://www.codenong.com/32699030/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10116.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?