开发者

iframe allow vertical scrollbar but not horizontal

开发者 https://www.devze.com 2022-12-16 03:47 出处:网络
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:

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

精彩评论

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