脚本宝典收集整理的这篇文章主要介绍了html中设置让div中的内容超出后自动显示滚动条,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
在ht
ML页面中,我们有时需要让div中的内容超出后自动显示滚动条,我们可以这样设置:
<div class="classlist">
<div class="autoScroll">
<asp:RadioButtonList ID="rblClasses" runat="server" DataTextField="
classname" DataVal
UEFIeld="classID"
ForeColor="
#FF4040">
</asp:RadioButtonList>
<asp:ImageButton ID="
imgSure" runat="server" ImageUrl="~/images/c_sure.
jpg" />
<asp:ImageButton ID="imgClose" runat="server" ImageUrl="~/images/c_close.jpg" />
</div>
</div>
然后,样式中这样设置:
<style ty
PE="text/css">
.classlist
{
width: 300px;
h
eight: 20px;
}
.autoScroll
{
width:300px;
height:100px;
overflow:auto;
}
#rblClasses
{
m
argin-left: 20px;
}
</style>
设置后,当radiobutton中显示的内容超出最外围的div时,将自动显示滚动条,即嵌套div
脚本宝典总结
以上是脚本宝典为你收集整理的html中设置让div中的内容超出后自动显示滚动条全部内容,希望文章能够帮你解决html中设置让div中的内容超出后自动显示滚动条所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。