<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../js/jquery-3.5.1.js"></script>
<script>
$(function () {
//表单 伪类选择器
//:password
$("input:password").css({
border:"2px solid #666666",
width:"300px",
height:"30px",
lineheight:"30px",
marginTop:"20px"
});
});
</script>
</head>
<body>
<div>
姓名:<input type="text"><br>
曾用名:<input type="text"><br>
密码:<input type="password"><br>
</div>
</body>
</html>