【发布时间】:2013-11-14 17:19:07
【问题描述】:
我有一个完整的页面 iframe,但在 chrome 中,滚动条最初加载然后消失,房间在那里,你可以使用它,但它不可见。在 pc 上的 safari、firefox 和 chrome 中完美运行,但在 mac 上,您可以看到滚动条的良好状态,但滚动条本身不见了。
body,html{
height:100%;
overflow:hidden;
}
#me-branding-bar{
overflow:hidden;
width:100%;
height:40px;
position:relative;
background-color:#ff9900;
}
#me-content{
height:100%;
width:100%;
position:relative;
border:1px solid #ff9900;
}
#me-content iframe{
border:1px solid #000;
overflow:scroll;
}
<div id="me-branding-bar">
</div>
<div id="me-content">
<iframe border="0" frameborder="0" hspace="0" vspace="0" marginheight="0" marginwidth="0" src="<?php echo $url;?>" style="overflow:visible;height:100%;width:100%;" height="100%" width="100%"></iframe>
</div>
【问题讨论】:
-
可以尝试一些建议[这里][1] [1]:stackoverflow.com/questions/6199892/…
-
我在 chrome (v30.0.1599.101) 中为您的 jsfiddle 示例提供了一个滚动条。
-
@kosherjellyfish 我在发帖前确实尝试过这个建议
-
@TiMESPLiNTER 你是用mac还是pc?我在 Mac 上安装了最新的 Chrome,但看不到它...
-
Mac 上的 Chrome 可能无法很好地显示条形图。滚动条仅在为我滚动时出现。
标签: html css macos google-chrome iframe