gpt4 book ai didi

css - 使用 html 对象标签嵌入 HTML 是可行的,但 IE7 有滚动条

转载 作者:太空宇宙 更新时间:2023-11-03 21:00:44 25 4
gpt4 key购买 nike

<object id="page" type="text/html" 
data="index_test.html"
width="565" height="500">
<p>Oops! That didn't work...</p>
</object>

这是我在 Firefox 中所拥有和工作的东西,但 IE7 有滚动条。我该如何摆脱它们?

最佳答案

虽然我很难推荐它,但在 标签上渲染 scroll="no"。这将消除 IE7 中的默认滚动条。 IE8 和其他标准浏览器可以在 body 标签的 CSS 上标记 overflow:auto 而不需要 scroll="no"

为了澄清,在 index_test.html 的 body 标签上添加 scroll="no"

关于css - 使用 html 对象标签嵌入 HTML 是可行的,但 IE7 有滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3198431/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com