.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: #;
        }

        .header {
            width: %;
            height: 100px;
            line-height: 100px;
        }

        .shortcut {
            width: %;
            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: #;
        }

            a:hover {
                color: #E4393C;
                text-decoration: underline;
            }

        .fav {
            top: 8px;
            left: ;
            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>

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>

Css Study - Top Menu in Header 横向间隔的菜单的更多相关文章

  1. Css Study - 纵向Menu - By html and Css

    http://www.wikihow.com/Create-a-Dropdown-Menu-in-HTML-and-CSS HTML <div id="leftmenu"&g ...

  2. css study

    ---恢复内容开始--- html{filter:expression(document.execCommand("BackgroundImageCache",false,true ...

  3. DIV+CSS制作二级横向弹出菜单,略简单

    没有使用JavaScript控制二级菜单的显示,结果如上图所示. 代码如下: <!DOCTYPE html> <html> <head> <meta char ...

  4. 使用jquery获取css的top和left属性

    使用jquery获取css的top和left属性 因为left和top也都是普通的css属性所以可以使用如下代码来获取 var left = $('#test').css('left'); var t ...

  5. JS实现的简单横向伸展二级菜单

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  6. javascript 横向下拉菜单演示

    <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><me ...

  7. Css Study - 横向MENU

    http://cssmenumaker.com/menu/tabbed-chrome-and-blue HTML <div id="topMenu"> <ul&g ...

  8. 纯css实现横向下拉菜单

    自己最近在捣腾css代码,不光是js能做很多有趣的东西,这货也可以做很多东西,现在把自己的一些作品分享给大家. 做得有点粗糙,大家根据这个思路来,可以自己修改修改. 关于demo:这是一个横向下拉的菜 ...

  9. table 上下左右 4根线的写法 :before :after 他们就能把td里面右下的那颗线给盖上 还有body和header横向滚动的联动 || 不能把body套在header上是为了上header表头固定 || 还有表头header的右侧overflow-y 是否出现滚动条的位置 记得有一个$nextTick 要不然会获取不到高度 高度就为0了 || 横向滚动条纵向滚动条

    table 上下左右 4根线的写法 <!--* @description 重点查核人员表!--><template> <div class="keyChecke ...

随机推荐

  1. [CareerCup] 17.12 Sum to Specific Value 和为特定数

    17.12 Design an algorithm to find all pairs of integers within an array which sum to a specified val ...

  2. Tree树形结构案例+源码

    上次用到Tree结构,自己不知道写,就在网上找了几个相对较好的tree小案例,留着自己用,希望也能帮到你 下面是案例的一些图片,压缩文件已近上传至博客当和百度云中. 下载链接:http://pan.b ...

  3. thinkphp关联模型的用法

    HAS_ONE(值得注意的是,这是主动关联,外键必须是被关联的表): <?php namespace Home\Model; use Think\Model\RelationModel; cla ...

  4. 8点需要注意的Web编程小细节

  5. "我爱记单词"测试报告兼功能展示

    "我爱记单词"测试报告兼功能展示 前言: 我们大部分的测试都是一边开发一边完成的,这里给出软件开发基本完成后在使用时的一些测试例子. 一.背景介绍 我们的数据库中一共有10个表: ...

  6. 使用Font Awesome替换你的网站图标

    http://fortawesome.github.io/Font-Awesome/whats-new/ 使用Font Awesome替换你的网站图标 ******************IE7BUG ...

  7. Learn ZYNC (4)

    最近整理出一些适合学习zed的实例(所有的例程都基于Vivado2013.4开发环境) (1)关于zed双核的测试案例: 官方链接:地址1.11.standalone,地址1.12.linux 修改源 ...

  8. php数组序列化serialize与unserialize

    $arr=array('1','2','3');echo serialize($arr); //序列化 a:3:{i:0;s:1:"1";i:1;s:1:"2" ...

  9. python 的重载

    python 的重载主要包括方法重载和运算符重载.1.python 方法重载: 其他的语言一般对于方法重载的话,主要是根据参数的类型不同或者是数量不同来区分同名的方法.而python则比较特殊,它本身 ...

  10. Codeforces Round #350 (Div. 2) D2 二分

    五一期间和然然打的团队赛..那时候用然然的号打一场掉一场...七出四..D1是个数据规模较小的题 写了一个暴力过了 面对数据如此大的D2无可奈何 现在回来看 一下子就知道解法了 二分就可以 二分能做多 ...