水平滚动条 [英] horizontal scrollbar

查看:108
本文介绍了水平滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < p>如何在我的页面中创建一个自动水平滚动条。 HTML> 
< body>
< div style =width:20px; height:30px; border:1px solid black; overflow:auto>
<! - 这里的各种文字可以让它走出边界 - >
< / div>
< / body>
< / html>

如果我的内容中的文本太长,我该如何制作自动水平滚动条? / p>

解决方案

将您的代码更改为:

 < html> 
< body>
< div style =width:20px; height:30px; border:1px solid black; overflow-x:scroll>
<! - 这里的各种文字可以让它走出边界 - >
< / div>
< / body>
< / html>


How can I make an automatic horizontal scroll bar in my page if the content will overflow in its border.

<html>
     <body>
        <div style ="width: 20px; height:30px; border:1px solid black; overflow:auto">
            <!-- various of text here that can makes it go out the border-->
        </div>  
     </body>
</html>

What if the text in my content is too long, how can I make an automatic horizontal scrollbar?

解决方案

change your code into this:

 <html>
 <body>
    <div style ="width: 20px; height:30px; border:1px solid black; overflow-x:scroll">
        <!-- various of text here that can makes it go out the border-->
    </div>  
 </body>
 </html>

这篇关于水平滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆