Blogger Information
Blog 17
fans 0
comment 0
visits 11529
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
获取滚动值案例——1月22号
iL的博客
Original
617 people have browsed it

实例

/* 清除浏览器自带的边距 */
*{
    padding: 0;
    margin: 0;
}

/* 设置body的高度,出现下拉 */
body{
    height: 3000px;
    background: #7CCEE8;
}

/* 设置导航条的属性 */
.top{
    width: 100%;
    height: 60px;
    background-color:pink;
    line-height:60px;
    text-align: center;

    /* 使用固定定位,不让其滚动 */
    position: fixed;

    /* 调整透明度 */
    opacity: 0.5;
}
.top2{
    opacity: 0.8;
}


/* 设置轮播图区块 */
.banner{
    width: 100%;
    height: 800px;
    background-color:#9BE5FC;
}

运行实例 »

点击 "运行实例" 按钮查看在线实例

 

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post