Home >Web Front-end >CSS Tutorial >How to hide text box border in css

How to hide text box border in css

王林
王林Original
2021-05-14 15:42:364222browse

The way to hide the text box border in css is to use the border-style attribute, such as [border-style:none;]. If we want to add a border to the text box, we can set [border-style: solid;].

How to hide text box border in css

The operating environment of this article: windows10 system, css 3, thinkpad t480 computer.

In CSS, we can use the border-style attribute to define the style of the border. If we want to cancel the border of the text box, we can set the attribute border-style:none.

Common attribute values:

  • none: Default is no border

  • dotted: Define a dotted border

  • dashed: Define a dashed border

  • solid: Define a solid border

For example:

p.one{
    border-style:none;
}
p.two{
    border-style:solid;
}

Related recommendations: css video tutorial

The above is the detailed content of How to hide text box border 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