不知道这是否有帮助,但我将这个 50% 更改为 100%,当我减小尺寸时,滚动出现
<iframe style="position: relative; width: 50%" id="menu" src="menu.html" name="menu" frameborder="0" noresize="noresize">
<iframe style="position: relative; width: 100%" id="menu" src="menu.html" name="menu" frameborder="0" noresize="noresize">
现在图像从:
<iframe style="position: relative; width: 100%;" id="paul-farrell-jessie-main" src="paul-farrell-jessie-main.html" name="paul-farrell-jessie-main" frameborder="0" noresize="noresize">
至:
<iframe style="position: relative; width: 1024px; height:768px" id="paul-farrell-jessie-main" src="paul-farrell-jessie-main.html" name="paul-farrell-jessie-main" frameborder="0" noresize="noresize">
要使其也可以在移动设备上运行,您可以使用以下命令:
@media (max-width: 600px) {
/*You put css in here as you would outside but specific for the size*/
#paul-farrell-jessie-main {
width: 200px;
}
}
要查看您拥有的所有选项,请查看 4 号http://www.w3.org/TR/css3-mediaqueries/