- 4/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
CSS实现带滚动条的表格,你见过没?其实只是用CSS强制定义表格的高度不被内容撑开就可以了,然后再定义overflow-y属性为scroll,这样表格就会出现滚动条!
<html> <head> <title>CSS带滚动条的表格 - mb5u.com</title> <meta http-equiv="mrc-Type" mrc="text/html;charset=gb2312"> <body> <table border="1"> <tr> <td><div style="width:100%;height:100;overflow-x:hidden;overflow-y:scroll">Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br>Welcome to mb5u.com<br></div></td> <td>Welcome to mb5u.com</td> </tr> </table> </body> </html>