Maison > Article > interface Web > html 隐藏滚动条
1. html 标签加属性
"<span style="color: #800000;">en</span><span style="color: #800000;">"</span> <span style="color: #0000ff;">class</span>=<span style="color: #800000;">"</span><span style="color: #800000;">no-ie</span><span style="color: #800000;">"</span> <span style="color: #ff0000;">style="overflow:hidden;"</span>>
2.body中加入以下代码
<style type="<span" style="color: #800000;">"<span style="color: #800000;">text/css<span style="color: #800000;">"><span style="color: #000000;"> html{ overflow-<span style="color: #000000;">x: hidden; overflow-<span style="color: #000000;">y: hidden; } </style>