Home >Web Front-end >HTML Tutorial >html hide scroll bar
1. Add attributes to html tag
<html lang=<span style="color: #800000;">"</span><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>>
Add the following code to 2.body
<style type=<span style="color: #800000;">"</span><span style="color: #800000;">text/css</span><span style="color: #800000;">"</span>><span style="color: #000000;"> html{ overflow</span>-<span style="color: #000000;">x: hidden; overflow</span>-<span style="color: #000000;">y: hidden; } </span></style>