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

How to hide x-axis coordinates in css

醉折花枝作酒筹
Release: 2023-01-06 11:16:07
Original
4220 people have browsed it

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;
Copy after login

How to hide x-axis coordinates in css

Example:

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

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!

Related labels:
css
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template