老师,这样写可以吗?

来源:3-12 编程练习

慕姐0147601

2019-03-27 14:09:59

<!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:200px;font-size:28px;}

       .input{width:200px;hright:50px}

       .sub{width:100px;height:30px;background-color:orange;font-size:20px;}

       span{width:200px;height:300px;}

    </style>

</head>

<body>

    <div>

        <p>登录</p>

        <span>请输入您的信息:</span><input type="text" class="input"><br>

        <input type="submit" class="sub">

    </div>

</body>

</html>


写回答

1回答

Steve007

2019-03-27

同学,你好。这样写是可以的,效果实现的不错,加油,继续努力。

祝学习愉快!

0

0 学习 · 36712 问题

查看课程