DIV+CSS設(shè)計實例:透明的導(dǎo)航菜單_Web標(biāo)準(zhǔn)教程
這是個透明的CSS菜單,兼容性:IE5.5+、Opera、Frefox、Netscape。
CSS代碼:
以下為引用的內(nèi)容:
body{
font: 80% Arial,sans-serif;
background: #666;
}
#nav{
width: 170px;
background: url(navbg.gif) bottom;
list-style-type: none;
margin: 0;
padding: 0;
}
#nav a{
display: block;
width: 170px;
line-height: 25px;
text-decoration: none;
color: #333;
text-indent: 10px;
font-weight: bold;
background: url(nav2.png);
}
#nav a:hover{
background: none;
color: #999;
}
用if調(diào)入對ie的CSS控制:
以下為引用的內(nèi)容:
<!--[if gte IE 5.5]>
<style type="text/css">
#nav a{background: none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale', src='nav2.png')}
#nav a:hover{filter: none}
</style>
<![endif]-->
- Web標(biāo)準(zhǔn):需要正確的使用H1~ H6標(biāo)簽
- 五個WEB標(biāo)準(zhǔn)中必須注意的地方
- 做到結(jié)構(gòu)(XHTML),表現(xiàn)(CSS),行為(JavaScript)的分離
- CSS標(biāo)準(zhǔn):HTML標(biāo)簽元素的關(guān)閉
- Web標(biāo)準(zhǔn)之路 勿使用W3C廢棄的元素
- CSS布局 聲明文檔類型描述(DTD)
- DIV CSS\讓搜索引擎蜘蛛不再累
- 用XHTML+CSS創(chuàng)建基于Web標(biāo)準(zhǔn)的網(wǎng)頁
- XHTML+CSS創(chuàng)建基于Web標(biāo)準(zhǔn)的網(wǎng)站
- DIV+CSS對SEO的幫助
- 淺析什么是Web標(biāo)準(zhǔn) 及其前景
- CSSer新手寄語:開始標(biāo)準(zhǔn)之路
- 相關(guān)鏈接:
- 教程說明:
Web標(biāo)準(zhǔn)教程-DIV+CSS設(shè)計實例:透明的導(dǎo)航菜單。