内部div设置为100%溢出

时间:2013-07-16 05:47:36

标签: css css3 html

我的外部DIV是position: fixed,并设置为叠加层,在其中我设置为100%的另一个div,边距为30px,以便内边框的外观。不幸的是,屏幕右侧和底部的边界流出。任何建议/提示将不胜感激。谢谢,


我有什么:http://jsfiddle.net/DTse2/1/

我想要实现的目标:

enter image description here

1 个答案:

答案 0 :(得分:2)

试试这个css

#overlay {
        position: fixed;
        top: 0;
        left: 0;
        right:0;bottom:0;
        background-color: #FFFFFF;
        filter:alpha(opacity=100);
        -moz-opacity:1;
        -khtml-opacity: 1;
        opacity: 1;
        z-index: 10000;padding:30px;
        text-align: center;
    }

    #overlay_inner {
        border: 1px solid #adadad;
    height:100%;


    }

<强> Demo