overflow:scroll; /*任何时候都强制显示滚动条*/
overflow:auto; /*需要的时候会出现滚动条*/
overflow-x:auto; /*控制X方向的滚动条*/
overflow-y:auto; /*控制Y方向的滚动条*/
示例:
表格内的滚动条: | style="position:absolute;height:200;width:200;overflow:auto;background:#EEEEEE;"> pppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp ppppppppppppppppppppppppp |
onmouseout=clearInterval(scrollb)>向左 onmouseout=clearInterval(scrollb)>向上 onmouseout=clearInterval(scrollb)>向右 onmouseout=clearInterval(scrollb)>向下 |
qwe
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
1234213
(图片大小:800x152)不需要浮出BOX,请问如何在CSS中解决?需要有滚动条,ie6和ie7都测试了, 图片并没有溢出div, 很正常的显示滚动条. 不是很,
overflow:visible;