目录
1、css代码
2、html代码
1、css代码
<style> * { margin: 0; padding: 0; list-style: none; text-decoration: none; } .nav { width: 900px; height: 40px; background-color: rgb(247, 249, 250); margin: 50px auto; padding-left: 30px; } .nav>li { float: left; width: 100px; text-align: center; } a { color: rgb(82, 82, 83); border-right: 1px solid rgb(90, 88, 88); display: block; width: 100px; height: 20px; margin-top: 10px; text-align: center; } .first { color: red; font-weight: 800; } .two { color: green; font-weight: 800; } a:hover { color: red; } .three { border-right: none; } </style>
讯享网
2、html代码
讯享网 <ul class="nav"> <li><a href="" class="first">天猫</a></li> <li><a href="" class="first">聚划算</a></li> <li><a href="" class="two">天猫超市</a></li> <li><a href="">司法拍卖</a></li> <li><a href="">飞猪旅行</a></li> <li><a href="">天天特卖</a></li> <li><a href="">极有家</a></li> <li><a href="" class="three">淘宝直播</a></li> </ul>


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/95124.html