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">

 

posted @ 2014-08-06 15:30  丁丁瓜瓜  阅读(192)  评论(0编辑  收藏  举报