css中滚动条设置
1. html中只有竖直滚动条
1 { 2 overflow-y:scroll; 3 overflow-x:hidden; 4 }
或者:
<body scroll="no" style="overflow-x:hidden">
2. 没有垂直滚动条
1 { 2 overflow-y:hidden; 3 overflow-x:scroll; 4 }
或者:
<body scroll="no" style="overflow-y:hidden">
3.没有滚动条
{ overflow:hidden; }
或者:
<body scroll="no" style="overflow-x:hidden;overflow-y:hidden">
或
<body scroll="no" style="overflow:hidden">