1. E1[attr]
2. E1[attr=value]
3. E1[attr~=value]
4. E1[attr|=value]
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
input{
width: 80px;
height: 40px;
border: solid 1px red;
}
input[type="submit"]{
color: blue;
}
input[name="button"]{
color: red;
}
</style>
</head>
<body>
<form action="1.demo.html" method="post">
<input type="button" name="button" id="" value="普通按钮" />
<input type="submit" name="" id="" value="普通按钮" />
<input type="reset" name="button" id="" value="普通按钮" />
</form>
</body>
</html>
如果您觉得本文的内容对您的学习有所帮助:
关键字:
div