<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>indeterminate属性</title>
</head>
<body>
<input type="checkbox" indeterminate id="cb">属性测试
<script>
var cb = document.getElementById("cb");
cb.indeterminate = true;
</script>
<!--indeteminate控制标签是否选中,一共三种状态,选中与否和不明状态-->
<form action="1.jsp" method="post">
小帅哥:<input type="text" name="boy">
<input type="image" src="1.jpg" alt="编辑" width="45" height="45">
<!--image提交按钮的宽度和高度属性,如果使用gif格式,也能成功,网页上图片会动,卡哇伊-->
</form>
</body>
</html>
indeterminate属性和提交图片的width和height属性
猜你喜欢
转载自blog.csdn.net/qq_42036616/article/details/81609647
今日推荐
周排行