如何在asp.net中启用水平scrollBar? [英] How to enable horizontal scrollBar in asp.net?
本文介绍了如何在asp.net中启用水平scrollBar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试最小化网页窗口时,水平滚动条不起作用,而垂直滚动条则正常工作.
所以,
如何启用水平滚动条?
这是我的代码.
When I try to minimize my window of web page, the horizontal scrollbar is not working but vertical scrollBar is working properly.
So,
how can I enable the horizontal scroll bar?
This is my code
<body style="overflow:auto">
推荐答案
水平滚动条仅在宽度大于页面的情况下才会出现在网页中.如果需要水平滚动,请添加宽度大于%100的元素.
A horizontal scroll bar only appears in a webpage if it is wider than the page. If you need a horizontal scroll add an element that has a width bigger than %100.
看看此处].
固定链接.
Take a look [here].
Fixed link.
只需在样式标签中添加width属性.
像:
just add width attribute in your style tag.
like:
这篇关于如何在asp.net中启用水平scrollBar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文