您好,欢迎访问一九零五行业门户网

一款纯css实现的漂亮导航_html/css_WEB-ITnose

今天给大家分享一款纯css实现的漂亮导航。之前为大家分享过jquery实现的个人中心导航菜单,今天这款也是适合放在个人中心。还带来图标,效果不错。一起看下效果图:
在线预览   源码下载
实现的代码。
html代码:
incoming messages news 32 priority 8 assigned 0/17 archived 3 deleted 9 show all
incoming 32 8 0/17 3 9 show all

css代码:
body { background: #f4f4f4; font-family: arial, sans-serif; font-size: 14px; font-weight: lighter; } .l-main { width: 530px; margin: 0 auto; } .menu { width: 250px; margin: 40px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); border-radius: 5px; float: left; } .menu__header { background: #4b4f55; border-bottom: 1px solid #353a40; border-radius: 5px 5px 0 0; } .menu__header-title { color: #fff; padding: 15px; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); } .menu__body { border-radius: 0 0 5px 5px; } .menu--small { width: 110px; } .nav { list-style: none; } .nav__item { position: relative; } .nav__item-link { padding: 10px 15px; text-decoration: none; color: #8b8e93; display: block; border-bottom: 1px solid #f0f0f0; } .nav__item-link:hover { background: #f0f0f0; } .nav__item-link.is-active { background: #6e757f; color: #fff; border-bottom-color: #4b4f55; box-shadow: 0 1px 0 #7a828d inset; } .nav__item-link.is-active:after { content: ''; display: block; position: absolute; top: 50%; right: -6px; margin-top: -6px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #6e757f; } .nav__item-link.is-active .nav__item-icon { color: #fff; } .nav__item:last-child .nav__item-link { border-bottom: none; } .nav__item-icon { color: #d2d5da; width: 20px; text-align: center; font-size: 18px; margin-right: 10px; } .badge { font-size: 12px; padding: 2px 8px; border: 1px solid #d1d1d1; border-radius: 10px; position: absolute; top: 10px; right: 15px; } .badge--warning { background: #ed373f; border-color: #ed373f; }
其它类似信息

推荐信息