Css Study - Top Menu in Header 橫向間隔的菜單

來源:互聯網
上載者:User

標籤:style   blog   http   color   java   使用   os   io   

.shortcut ul li {
  display: inline;
}

 

CSS

 <style>        ol, ul {            list-style: none;        }        html, body, ul, li, div, form {            margin: 0px;            border: 0px;            padding: 0px;            font-size: 11px;            color: #666;        }        .header {            width: 100%;            height: 100px;            line-height: 100px;        }        .shortcut {            width: 100%;            line-height: 30px;            height: 30px;            background: #F7F7F7;            border-bottom: 1px solid #eee;        }            .shortcut ul li {                display: inline;            }            .shortcut .fl {                left: 50px;                position: absolute;            }        a {            text-decoration: none;            color: #666;        }            a:hover {                color: #E4393C;                text-decoration: underline;            }        .fav {            top: 8px;            left: 0;            width: 13px;            height: 13px;            background: url(http://misc.360buyimg.com/lib/skin/2013/i/20130725.png) no-repeat 0 0;            cursor: pointer;            position: absolute;            overflow: hidden;        }        .add_home {            top: 8px;            left: 78px;            width: 13px;            height: 13px;            background: url(http://misc.360buyimg.com/lib/skin/2013/i/20130725.png) no-repeat 0 0;            cursor: pointer;            position: absolute;            overflow: hidden;        }        .fl ul li a {            margin-left: 20px;        }        .shortcut .fr {            width: 500px;            float: right;            right: 20px;            position: absolute;        }    </style>
View Code

 

Header

<div class="header">            <div class="shortcut">                <div class="fl">                    <ul>                        <li><b class="fav"></b><a href="javascript:addToFavorite()" rel="nofollow">收藏我們</a></li>                        <li><b class="add_home"></b><a href="javascript:addToFavorite()" rel="nofollow">加為首頁</a></li>                    </ul>                </div>                <div class="fr">                    <ul>                        <li>                            <span style="color: #e3840a; font-weight: bold">Willa</span>                            您好,歡迎使用My System!  <%=DateTime.Now.ToString("yyyy-MM-dd hh:mm")%></li>                        <li><a>[退出]</a></li>                        <li>|</li>                        <li><a>On Duty</a></li>                        <li>|</li>                        <li><a>Off Duty</a></li>                    </ul>                </div>            </div>        </div>
View Code

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.