开发者

iframe allow vertical scrollbar but not horizontal

I have an HTML iframe. I want it to be scrollab开发者_StackOverflowle vertically, but not horizontally. Is this possible?


Automatically shows vertical scrollbar if content is longer than viewable area:

.iframe-class { overflow-x:hidden; overflow-y:auto; }

Forces vertical scrollbar even if content is not longer than viewable area:

.iframe-class { overflow-x:hidden; overflow-y:scroll; }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜