我已经尝试了所有我能想到的东西,但无论我尝试多少,它仍然不会让我改变高度/高度,它会让我改变宽度......
HTML(主页):
<iframe src="sidebar.php" width="20%" hight="800px"></iframe>
CSS(主页):
iframe {
background-color: #222222;
border: none;
color: white;
height: 100%;
}
有!
答案 0 :(得分:0)
试一下
HTML
<iframe src="sidebar.php" ></iframe>
<强>的CSS 强>
iframe {
background-color: #222222;
border: none;
color: white;
height: 100%;
width:100%;
}
答案 1 :(得分:0)
高度的语法错误,应为高度
<iframe src="http://www.w3schools.com" width="400" height="400">