GridView产生纵向横向的滚动条

来源:互联网 发布:关于大数据例子分析 编辑:程序博客网 时间:2024/05/17 01:30
让GridView产生纵向横向的滚动条。这样就不会吧页面撑打了。

CSS code
<style type="text/css" id="print" media="print"> #leftSide, #footerSide { display:none; } </style> <style type="text/css" > .Freezing { position:relative ; table-layout:fixed; top:expression(this.offsetParent.scrollTop); z-index: 10; } .Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;} </style>


HTML code
<div id="Div1" style="overflow: scroll; height: 140px;width:638px" >Gridview 在这里</div>
 
原创粉丝点击