CSS使用技巧20则
来源:ASP学习网 作者:Admin 时间:08-07-15 点击:
<li><a href="#" class="contact">Contact us</a></li>
</ul>
然后分别为每一页的Body指定一个id,和上面类同名。如<body id="contact">。
然后设计CSS如下:
#home .home, #about .about, #about .about{
commands for highlighted navigation go here
}
这里,当id设为home时,.home就会起作用,也就是class设为home的那一行导航条就会显示出特殊效果来。其他页也是如此。
本文作者是:Trenton Moss。
发表网站是:http://www.webcredible.co.uk
上一篇:网页播放器代码设置参数总结
下一篇:用ASP实现远程批量文件改名