0
http://validator.w3.org/已使用我的代码返回了以下验证错误。无法隐藏使用css的iframe水平滚动条
行140,栏109:iframe元素 上的滚动属性已过时。改用CSS。 ... d” SCROLLING = “无” SRC = “http://crea8tion.com/PP/usercapture/index.php”>
我搜索谷歌和发现计算器以下解决方案。
The scrolling attribute on the iframe element is obsolete. Use CSS instead
所以我改变了我的HTML删除SCROLLING = “无”,现在我的HTML目前看起来像这样
<iframe class="restricted" src="http://crea8tion.com/PP/usercapture/index.php"></iframe>
和我的CSS这样
.restricted
{
width:auto;overflow-y:hidden; height:280px;overflow-x:hidden;
}
但我仍然有一个水平滚动条出现在我的页面上。我错过了什么?
看看是否有帮助http://stackoverflow.com/a/18649273/961695 –
这是帮助解决问题的有用部分。 – Dano007