CSS模塊代碼
body{padding:10px; font-size:12px;}
h1{margin:0; padding:10px 0; font-size:14px; font-weight:bold;}
.div a{background:url(divcss5.gif) left 0; color:#fff; text-decoration:none;
height:30px; float:left; cursor:hand; margin:0 5px 0 0;}
.div a:hover{background:url(divcss5.gif) left -30px;height:30px;}
.div a span{background:url(divcss5.gif) right 0; padding:7px 8px 7px 0;
margin:0 0 0 8px; float:left; height:16px;}
.div a:hover span{background:url(divcss5.gif) right -30px; color:#000;
padding:7px 8px 7px 0; margin:0 0 0 8px; height:16px; }
HTML模塊代碼
<div class="div">
<a href="http://www.divcss5.com/"><span>首頁</span></a>
<a href="http://www.divcss5.com/" target="_blank"><span>DIV CSS</span></a>
<a href="http://www.divcss5.com/template/" target="_blank"><span>DIV CSS模塊</span></a>
<a href="http://www.divcss5.com/peixun/" target="_blank"><span>學習CSS上DIVCSS5!</span></a>
<a href="http://www.divcss5.com/shouce/" target="_blank">
<span>CSS手冊 可以查詢常見屬性</span></a>
</div>