0

I used 2 div's with fixed positioning, and after resize - opera doesen't redraw elements.

#wrapper{
    position:fixed;
    z-index:10000;
    height: auto;
    background-color: transparent;
    margin: 0;
}

#label {
    position: fixed;
    bottom:0px;
    left: 50%;
    background-color: transparent;
    z-index: 9999999;
    height: 40px;
    width: 200px;
    border: 1px solid red;
    margin-left:-100px;
}


<div id="wrapper">
    <div id="label">content</div>
</div>

U can see this bug here

http://jsfiddle.net/6Cm6J/1/

Just load page in Opera browser and resize window.

Pls help

4

1 回答 1

0

写这个 CSS

现场演示

css

#wrapper{
    position:fixed;
    z-index:10000;
    height: auto;
    background-color: transparent;
    margin: 0;
    bottom:0;
    left:0;
    right:0;
}

#label {
    position: relative;
    bottom:0px;
    left: 50%;
    background-color: transparent;
    height: 40px;
    width: 200px;
    border: 1px solid red;
    margin-left:-100px;
}
于 2013-03-01T11:54:19.753 回答