Home  >  Article  >  Web Front-end  >  How to operate scroll bars in HTML

How to operate scroll bars in HTML

php中世界最好的语言
php中世界最好的语言Original
2018-01-22 11:02:342506browse

This time I will bring you the method of operating scroll bars with HTML. What are the precautions for operating scroll bars with HTML? The following is a practical case, let's take a look.

  1. html tag with

    attribute

    ##
    <html lang="en" class="no-ie" style="overflow:hidden;">
  2. 2. Add the following code to the body
<style type="text/css">     
html{     
    overflow-x: hidden;     
    overflow-y: hidden;     
}     
</style>

html How to remove the scroll bar from the page

In order to prevent the previous css file from overwriting the style of the body

Write a css directly in the html

<span style="font-size:24px;"><style type="text/css">     
body{     
    overflow-x: hidden;     
    overflow-y: hidden;     
}     
</style></span>

This way there will be no scroll bar

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

Introduction to common uses of meta tags in HTML


Detailed introduction to the basic concepts of HTML


Knowledge summary of HTML text format

The above is the detailed content of How to operate scroll bars in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn