三、jQuery--jQuery实践--网页定位导航特效 -->    三、jQuery--jQuery实践--网页定位导航特效 -->   三、jQuery--jQuery实践--网页定位导航特效-->

三、jQuery--jQuery实践--网页定位导航特效 -->             三、jQuery--jQuery实践--网页定位导航特效

一、使用jQuery来实现

css部分

* {
        margin: 0;
        padding: 0;
    }
    
    body {
        font-size: 12px;
        line-height: 1.7;
    }
    
    li {
        list-style: none;
    }
    
    #content {
        width: 800px;
        margin: 0 auto;
        padding: 20px;
    }
    
    #content h1 {
        color: #0088bb;
    }
    
    #content .item {
        padding: 20px;
        margin-bottom: 20px;
        border: 1px dotted #0088bb;
    }
    
    #content .item h2 {
        font-size: 16px;
        font-weight: bold;
        border-bottom: 2px solid #0088bb;
        margin-bottom: 10px;
    }
    
    #content .item li {
        display: inline;
        margin-right: 10px;
    }
    
    #content .item li a img {
        width: 230px;
        height: 230px;
        border: none;
    }
    
    #menu {
        position: fixed;
        top: 100px;
        left: 50%;
        margin-left: 400px;
        width: 50px;
    }
    
    #menu ul li a {
        display: block;
        margin: 5px 0;
        font-size: 14px;
        font-weight: bold;
        color: #333;
        width: 80px;
        height: 50px;
        line-height: 50px;
        text-decoration: none;
        text-align: center;
    }
    
    #menu ul li a:hover,
    #menu ul li a.current {
        color: #fff;
        background: #0088bb;
    }
    
    * html,
    * html body {
        background-image: url(about:blank);
        background-attachment: fixed;
    }
    
    * html #menu {
        position: absolute;
        bottom: auto;
        top: expression(100+((e=document.documentElement.scrollTop)?e: document.body.scrollTop)+'px');
    }
View Code

相关文章:

  • 2022-01-20
  • 2022-01-01
  • 2021-11-29
  • 2021-09-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2021-08-30
  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
  • 2021-11-29
相关资源
相似解决方案