Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html windows运行时,Div(滚动按钮/图片)未调整大小_Html_Css_Dreamweaver - Fatal编程技术网

Html windows运行时,Div(滚动按钮/图片)未调整大小

Html windows运行时,Div(滚动按钮/图片)未调整大小,html,css,dreamweaver,Html,Css,Dreamweaver,当我调整浏览器(firefox/chrome)窗口的大小时,div也在移动,并且没有调整大小。我还没有找到关于stackoverflow的任何答案。请帮忙 这就是实际发生的情况: 代码: position: absolute; width: 80%; height: 50%; 必须有一些css属性的重叠,所以你可以用下面的替换它 position: relative; width: 80%!important; height: 50%!important; 现在检查。您好,先生,此代码不起作

当我调整浏览器(firefox/chrome)窗口的大小时,div也在移动,并且没有调整大小。我还没有找到关于stackoverflow的任何答案。请帮忙

这就是实际发生的情况:

代码:

position: absolute;
width: 80%;
height: 50%;

必须有一些css属性的重叠,所以你可以用下面的替换它

position: relative;
width: 80%!important;
height: 50%!important;

现在检查。

您好,先生,此代码不起作用:(实际情况如下: