Css Firefox溢出:滚动调整大小问题
在Firefox中Css Firefox溢出:滚动调整大小问题,css,firefox,resize,scroll,overflow,Css,Firefox,Resize,Scroll,Overflow,在Firefox中 <div id="container" style="overflow:scroll; width:400px; height:500px"> <div id="content" style="height:500px; width:800px"/> </div> 我尝试通过应用css类在容器上强制回流。这不管用 function Resize() { document.getElement("content").sty
<div id="container" style="overflow:scroll; width:400px; height:500px">
<div id="content" style="height:500px; width:800px"/>
</div>
我尝试通过应用css类在容器上强制回流。这不管用
function Resize() {
document.getElement("content").style.width="200px";
document.getElement("container").className="test";
}
设置
溢出:滚动代码>应强制打开滚动条。
如果希望它们随内容大小出现和消失,请尝试overflow:auto代码>设置溢出:滚动代码>应强制打开滚动条。
如果希望它们随内容大小出现和消失,请尝试overflow:auto代码>
function Resize() {
document.getElement("content").style.width="200px";
document.getElement("container").className="test";
}