【1】代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
/* 属性选择器 */
input[type="password"]{
background-color: red;
}
input[type="text"][value="zhao"]{
background-color: yellow;
}
</style>
</head>
<body>
<form>
用户名:<input type="text"/ value="zhao"><br />
用户名1:<input type="text"/ value="zhao1"><br />
密 码:<input type="password" value="123456"/><br />
<input type="submit" value="登录" />
</form>
</body>
</html>