在div中创建滚动条 [英] Creating scroll bars in a div
本文介绍了在div中创建滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在div中添加滚动条.我尝试使用以下代码.
How can I add scroll bars in a div. I tried with the following code.
<div id="screenDiv" style="removed: relative; width: 100; height:100; overflow-x: scroll overflow-y: scroll display:block"> </div>
我既没有滚动条,也没有将div的大小固定为100,100.请帮助解决此问题.
Thilaga.
I am neither getting the scroll bar nor fixing the size of the div as 100,100. Please help to fix this.
Thilaga.
推荐答案
您应在每个属性的末尾添加分号(;).
试试这个
You should put semicolons(;) at end of every attribute.
Try this
<div id="screenDiv" style="width: 100; height:100; overflow: scroll; display:block;"></div>
这篇关于在div中创建滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文