為什么還能輸入內容
<!DOCTYPE html>
<html lang="en">
<head>
? ?<meta charset="UTF-8">
? ?<title>Title</title>
? ?<style>
input[type="text"]:read-only{
border-color: #ccc;
? ? ? ?}
? ?</style>
</head>
<body>
<form action="post.php" method="post" >
? ?<input type="text" name="uname">
? ?<input type="submit" value="提交">
</form>
</body>
</html>
2017-07-19
設置了 ? 還是可以寫????????怎么回事啊
2017-07-16
你的input標簽沒有設置readonly='readonly'屬性
2017-06-20
:read-only”偽類選擇器用來指定處于只讀狀態(tài)元素,
:disabled選擇器用來不可輸入內容