3-9编程练习批改
来源:3-12 编程练习
慕田峪0316891
2018-04-27 16:29:47
<!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:28px;
}
.input{
width:30%;
height:50px;
}
.sub{
width:100px;
height:30px;
background-color:orange;
font-size:20px;
}
span{
width:250%;
height:250%;
}
</style>
</head>
<body>
<div>
<p>登录</p>
<span>请输入您的信息:</span><input type="text" class="input"><br>
<input type="submit" class="sub">
</div>
</body>
</html>
1回答
经测试效果是可以的呢,继续加油~~
相似问题