header
英 [?hed?(r)]? ?美 [?h?d?]??
n.頭球;割穗機(jī);(計算機(jī)打印時自動加在各頁頂端的)標(biāo)頭;集管
jquery header選擇器 語法
作用::header 選擇器選取所有標(biāo)題元素(h1 - h6)。
語法:$(":header")
jquery header選擇器 示例
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(":header").css("background-color","#B2E0FF"); }); </script> </head> <body> <html> <body> <h1>Welcome to My Homepage</h1> <p class="intro">My name is Donald</p> <p>I live in Duckburg</p> <p>My best friend is Mickey</p> <div id="choose"> Who is your favourite: <ul> <li>Goofy</li> <li>Mickey</li> <li>Pluto</li> </ul> </div> </body> </html> </body> </html>
點擊 "運行實例" 按鈕查看在線實例