麻烦老师帮我看一下代码以及代码的实现是否正确
来源:3-12 编程练习
努力学习的小张
2020-09-23 22:11:40
<!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;}
/*补充样式*/
div p{font-size:2em;
width:30%;
}
input.input{
width:30%;
height:25%;
}
input.sub{
width:100px;
height:30px;
background-color:orange;
font-size:20px;
}
</style>
</head>
<body>
<div>
<p>登录</p>
<span>请输入您的信息:</span><input type="text" class="input"><br>
<input type="submit" class="sub">
</div>
</body>
</html>
1回答
好帮手慕夭夭
2020-09-24
同学你好,代码实现正确,继续加油,祝学习愉快~
相似问题