day 14 Python Css padding

来源:互联网 发布:淘宝美工与运营 编辑:程序博客网 时间:2024/05/18 00:32

1.padding-top:如果是整数表示div内部增加了边距.


<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>


        <div style="background-color: green;height: 30px;margin-top: 3px;padding-top: 2px"></div>
        <div style="height:70px;border: 1px solid red;"></div>
        <div style="height: 100px;border: 1px solid yellow">


            <div style="margin-top: 10px;margin-left: 10px;background-color: red">
            <input>
            <input>
            <input>
            </div>


        </div>


         <div style="height: 100px;border: 1px solid red">


            <div style="padding-top: 10px;padding-left: 10px;background-color: red">
            <input>
            <input>
            <input>
            </div>


        </div>


          <div style="height: 100px;border: 1px solid red">


            <div style="background-color: red">
            <input>
            <input>
            <input>
            </div>


        </div>




</body>
</html>

0 0
原创粉丝点击