Home > Web Front-end > HTML Tutorial > How to remove the border of button in html

How to remove the border of button in html

青灯夜游
Release: 2021-12-13 17:09:24
Original
16648 people have browsed it

Method: 1. Use the border-style attribute to add the "border-style:none;" style to the button element; 2. Use the border-color attribute to add "border-color:transparent" to the button element ;" style is enough.

How to remove the border of button in html

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

htmlRemove the border of the button

1. Use the border-style attribute

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
	</head>
	<body>
		<button>按钮元素</button>
		<button style="border-style: none;">按钮元素</button>
	</body>
</html>
Copy after login

How to remove the border of button in html

2. Use the border-color attribute

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
	</head>
	<body>
		<button>按钮元素</button>
		<button style="border-color: transparent;">按钮元素</button>
	</body>
</html>
Copy after login

How to remove the border of button in html

Recommended tutorial: "html video tutorial

The above is the detailed content of How to remove the border of button in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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