css - chrome 和 IE 中的 iframe 滚动条问题

标签 css asp.net-mvc-4

我有一个 iframe,我们只需要显示水平滚动条并阻止垂直滚动条。

<div class="restricted">
   <iframe runat="server" id="ifEmailBody" scrolling="auto" width="600" frameborder="1">   </iframe>
</div>


.restricted{overflow:hidden; overflow-y: hidden;}
.restricted iframe
{
   overflow:hidden; 
   overflow-y: hidden;
}

这是在 Fireforx 中隐藏垂直滚动条。 但它并没有将其隐藏在 Chrome 和 IE 中。

有人可以建议如何修复它吗?

最佳答案

Safari/Chrome (Webkit) - Cannot hide iframe vertical scrollbar

希望你能在这里找到解决办法

关于css - chrome 和 IE 中的 iframe 滚动条问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22984743/

相关文章:

c# - 为什么 VS2015RC 说 "The ViewBag doesn' t 存在于当前上下文中”,而 VS2013 说没有错误?

带有 :before and :after pseudo elements 的 CSS 过渡

html - 如何让我的网站在某个点后停止调整

css - 如何设置相对于祖父而不是 parent 的字体大小?

javascript - SVG defs 多个元素 CSS 改一个

asp.net-mvc - 在 foreach 中显示第一项 - MVC

c# - 我在一个 View 中混合了创建 View 和索引 View 代码。那么,如何通过 asp.net MVC4 中的 View 从数据库中检索数据?

javascript - 如何将我的汉堡菜单转换为水平菜单?

asp.net-mvc - HttpConfiguration缺少程序集

javascript - 按钮单击 jquery 函数时,html 表响应未显示在 MVC View 中