css嵌入无滚动条

mrd*_*204 5 css embed hidden scrollbar

好吧,我有一个带有 ajax 按钮的页面。当您点击 ajax 按钮时,它会将一个嵌入对象扔到“data”div 中。一切正常,我的问题是嵌入正在创建一个我不想要的滚动条。关于如何防止滚动条有什么想法吗?我已经尝试过在任何地方都可以抛出“overflow:hidden”,但没有成功=/

〜html〜

http://pastebin.com/WZ2YzDVb

〜我的.css〜

http://pastebin.com/iR335BNj

~ajax 嵌入数据~

<embed width=100% height=100% type='text/html' style='overflow: hidden' src='source'>
Run Code Online (Sandbox Code Playgroud)

我使用pastebin来保持我的帖子干净。

Gil*_*OOl -1

只需将此代码添加到您的 css 文件中:

img, video, object, embed {
max-width: 100%;    
height: auto;
overflow:hidden !important;
}
Run Code Online (Sandbox Code Playgroud)