Home > Article > Web Front-end > How to hide text box border in css
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;].
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!