CSS "overflow:scroll"不适用于 chrome

标签 css google-chrome iframe webkit

我有一个 iframe,即使内容适合 iframe,我也需要滚动条出现。所以使用了 overflow:scroll 属性。这适用于 FF、IE 但不适用于 chrome。

#iframeid
{
    height:500; width:1150
}
#iframeid::-webkit-scrollbar
{
    width: 12px;
    overflow-x:scroll;
    overflow-y:scroll;
}

这完全删除了滚动条。有什么我想念的吗?

最佳答案

在 iframe 中使用滚动属性..

<iframe width="150" height="150" scrolling="yes/no/auto"></iframe>

关于CSS "overflow:scroll"不适用于 chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18650483/

相关文章:

javascript - 如果加载事件已经触发,则将加载事件绑定(bind)到 iframe 或运行函数

javascript - contentWindow.document.body 为空

css - Unicode 字符特定的 CSS - 一个想法

javascript - 内容脚本中的 Chrome captureVisibleTab

javascript - chrome.bluetooth.write 错误? IO返回码 : 3758097088

javascript - 在 chrome 打包的应用程序中使用 javascript 截取屏幕截图

asp.net - 如何从 ASP.NET 中的代码隐藏文件访问 IFRAME?

javascript - 单击链接时,我的图像右边框消失了 - CSS、jQuery

css - 首先 CSS 样式不会响应 HTML

css - Font Family Open Sans 未被使用