步骤二3-12练习
来源:3-12 编程练习
慕少7027160
2019-10-21 22:22:57
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>可设置宽和高的元素</title>
<style type="text/css">
div{ width:600px;height:200px;border:1px solid gray;font-size:14px;}
p{width:30%;font-size:2em;}
.input{width:30%;height:25%;}
.sub{width:100px;height:30px;background-color:orange;font-size:20px;}
span{width:100px;height:100px;}
</style>
</head>
<body>
<div>
<p>登录</p>
<span>请输入您的信息:</span><input type="text" class="input"><br>
<input type="submit" class="sub">
</div>
</body>
</html>
1回答
你好同学,效果实现的正确,继续加油,祝学习愉快。
相似问题