首页 > 编程知识 正文

html浮动导航栏,html设置导航条样式

时间:2023-05-05 01:04:54 阅读:19122 作者:1150

导航栏效果图如下:

代码如下。

! doctypehtmlhtmllang=' zh ' headmetacharset=' utf-8 ' metaname=' viewport ' content=' width=device-width, initial-scale=1.0 ' meta http-equiv=' x-ua-compatible ' content=' ie=edge ' title/titlestyletype=' text/cont height: 350px; padding: 0px; }li{list-style-type: none; 浮点:左; }a{display: block; width: 100px; height: 50px; font-family :微软ya hei; line-height: 50px; 背景色: crimson; margin: 0px 0px; color: #fff; 文本对齐3360中心; 文本修饰:无; font-size: 15px; } a : hover { background-color : #2F6 f4f; }/style/headbodydivulclass=daohanglanliahref=' '首页/a/lilia href=' '图书/a/lilia href=' '家电/a/lilia hrref

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。