1、屬性選擇器html
1.git
(1)定義:根據指定的 屬性名稱找到對應的標籤,而後設置屬性github
(2)格式:標籤[屬性=值]:{屬性:值;]微信
注意:前一個值是不帶引號的ide
(3)例子:學習
<style> p[id]{ color: red; } </style> </head> <body> <p id="identity1">我是段落1</p> <p id="identity2">我是段落2</p> <p id="identity3">我是段落3</p> <p>我是段落3</p> </body>
解釋:咱們在p標籤中找到帶id屬性(若是id屬性值缺省那麼咱們就認爲是所有的這種屬性都是選中的)的,而後設置爲紅色大數據
(4)場景:就是區分input屬性ui
2、源碼:spa
d79_attribute_selector.html.net
地址:
https://github.com/ruigege66/HTML_learning/blob/master/d79_attribute_selector.html
2.CSDN:https://blog.csdn.net/weixin_44630050(心悅君兮君不知-睿)
3.博客園:https://www.cnblogs.com/ruigege0000/
4.歡迎關注微信公衆號:傅里葉變換,後臺回覆「禮包」獲取Java大數據學習視頻禮包