使用CSS提交样式输入类型
输入类型按钮可以是提交按钮或重置按钮。使用CSS,我们可以设置网页上任何按钮的样式。
您可以尝试运行以下代码来设置输入类型提交的样式:
示例
<!DOCTYPE html>
<html>
<head>
<style>
input[type = submit] {
background-color: orange;
border: none;
text-decoration: none;
color: white;
padding: 20px 20px;
margin: 20px 20px;
cursor: pointer;
}
</style>
</head>
<body>
<p>Fill the below form,</p>
<form>
<label for = "subject">Subject</label>
<input type = "text" id="subject" name ="sub"><br><br>
<label for = "student">Student</label>
<input type = "text" id = "student" name = "stu"><br>
<input type = "submit" value = "Submit">
</form>
</body>
</html>热门推荐
10 晚上情侣祝福语大全简短
11 祝福语俄语老师文案简短
12 晋城春节祝福语简短英文
13 孩子生日刺青祝福语简短
14 离世人的祝福语简短
15 男生儿子生日祝福语简短
16 朋友升职红包祝福语简短
17 同事姐妹离别祝福语简短
18 妈妈求婚祝福语大全简短