自丢网
标题:
html5属性值=空字符串,代表属性为true
[打印本页]
作者:
admin
时间:
2019-7-29 15:53
标题:
html5属性值=空字符串,代表属性为true
html5属性值=空字符串,代表属性为true案例:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<!--只写属性,不写属性值,代表属性为true-->
<input type="checkbox" checked>
<!--不写属性,代表属性为false-->
<input type="checkbox">
<!--属性值=属性名,代表属性为true-->
<input type="checkbox" checked="checked">
<!--属性值=空字符串,代表属性为true-->
<input type="checkbox" checked="">
</body>
</html>
复制代码
作者:
乐乐
时间:
2019-8-20 05:04
自丢网真心不错,学习教程网。
欢迎光临 自丢网 (https://www.zidiu.com/)
Powered by Discuz! X3.5