Home >Web Front-end >CSS Tutorial >How to hide x-axis coordinates in css

How to hide x-axis coordinates in css

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-02 10:20:594224browse

In CSS, you can use the overflow-x attribute to hide the x-axis coordinate. You only need to set the "overflow-x:hidden" style to the element. The overflow-x attribute is used to crop the left/right edge of the content in the div element. When the value is hidden, it means that the content is cropped and no scrolling mechanism is provided.

How to hide x-axis coordinates in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

You can use overflow-x to crop the left/right edges of the content in the div element - if it overflows the content area of ​​the element

Syntax:

overflow-x: visible|hidden|scroll|auto|no-display|no-content;

How to hide x-axis coordinates in css

Example:

body{
overflow:scroll;//固定长和宽
overflow-y:hidden;/隐藏y轴
overflow-x:hidden;//隐藏x轴
}

Recommended learning:css video tutorial

The above is the detailed content of How to hide x-axis coordinates in css. 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