久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      css3中屬性選擇器有哪三種

      css3中的三種屬性選擇器:1、“[屬性名^=值]”,匹配屬性值以指定值開頭的每個(gè)元素;2、“[屬性名$=值]”,匹配屬性值以指定值結(jié)尾的每個(gè)元素;3、“[屬性名*=值]”,匹配屬性值中包含指定值的每個(gè)元素。

      css3中屬性選擇器有哪三種

      本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      css3中的三種屬性選擇器

      屬性選擇器 描述 示例 示例說明 CSS
      [attribute^=value] 匹配屬性值以指定值開頭的每個(gè)元素 a[src^="https"] 選擇每一個(gè)src屬性的值以"https"開頭的元素 3
      [attribute$=value] 匹配屬性值以指定值結(jié)尾的每個(gè)元素 a[src$=".pdf"] 選擇每一個(gè)src屬性的值以".pdf"結(jié)尾的元素 3
      [attribute*=value] 匹配屬性值中包含指定值的每個(gè)元素 a[src*="44lan"] 選擇每一個(gè)src屬性的值包含子字符串"44lan"的元素 3

      [attribute^=value]屬性選擇器

      [attribute^=value] 選擇器匹配元素屬性值帶指定的值開始的元素。

      示例:

      設(shè)置class屬性值以"test"開頭的所有div元素的背景顏色

      <!DOCTYPE html> <html> <head> <style>  div[class^="test"] { background:#ffff00; } </style> </head> <body>  <div class="first_test">The first div element.</div> <div class="second">The second div element.</div> <div class="test">The third div element.</div> <p class="test">This is some text in a paragraph.</p>  </body> </html>

      css3中屬性選擇器有哪三種

      [attribute$=value]屬性選擇器

      [attribute$=value] 選擇器匹配元素屬性值帶指定的值結(jié)尾的元素。

      示例:

      設(shè)置class屬性值以"test"結(jié)尾的所有元素的背景顏色:

      <!DOCTYPE html> <html> <head> <style>  [class$="test"] { background:#ffff00; } </style> </head> <body>  <div class="first_test">The first div element.</div> <div class="second">The second div element.</div> <div class="test">The third div element.</div> <p class="test">This is some text in a paragraph.</p>  </body> </html>

      css3中屬性選擇器有哪三種

      [attribute*=value]屬性選擇器

      [attribute*=value] 選擇器匹配元素屬性值包含指定值的元素。

      示例:

      設(shè)置class屬性值包含"test"的所有元素的背景顏色

      <!DOCTYPE html> <html> <head> <style>  [class*="test"] { background:#ffff00; } </style> </head> <body>  <div class="first_test">The first div element.</div> <div class="second">The second div element.</div> <div class="test">The third div element.</div> <p class="test">This is some text in a paragraph.</div>  </body> </html>

      css3中屬性選擇器有哪三種

      (學(xué)習(xí)視頻分享:css視頻教程)

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)