小编Mik*_* K.的帖子

使div为浏览器窗口的100%宽度

我试图让我的一个容器100%的屏幕宽度.

这是我的SASS

body, html { 
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#neo_wrapper {  
    width: 960px;
    height: 1500px;
    margin: 0 auto;

    #neo_main_container1 {  /* Slide1 container */
        width: 100%;
        height: 100%;
        margin: 0 auto;
        background: #999999;
        z-index: 350;

        #neo_scroll_button {    /* Div that enables scroll */
            position: absolute;
            bottom: 35px;
            left: 0;
            right: 0;
            margin: 0 auto;
            width: 150px;
            height: 15px;
            background: #F00;
            color: #FFF;
            text-align: center;
            line-height: 15px;
            display: table; 

            a { 
                &:link {text-decoration: none; color: #FFF;} …
Run Code Online (Sandbox Code Playgroud)

html css sass fullscreen

10
推荐指数
2
解决办法
10万
查看次数

标签 统计

css ×1

fullscreen ×1

html ×1

sass ×1