Home > Article > Web Front-end > Simple implementation of hiding scroll bars in html
1. Add attributes to html tag
##XML/HTML CodeCopy content to clipboard
<html lang="en" class="no-ie" style="overflow:hidden;">
2.Add the following code to the body
Copy the content to the clipboard
<style type="text/css"> html{ overflow-x: hidden; overflow-y: hidden; The simple implementation of the above html hidden scroll bar is a small I have compiled all the content shared with you. I hope it can give you a reference. I also hope that everyone will support the PHP Chinese website. For more articles related to the simple implementation of html hidden scroll bars, please pay attention to the PHP Chinese website!