zoukankan      html  css  js  c++  java
  • div嵌套div标签

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
    div{
    /*
    border-color: red;
    border- 1px;
    border-style: solid;
    */
    border: 1px solid red;

    100px;
    height: 100px;
    }
    #one{
    /*
    1个属性时: 4个方向.
    2个属性时: 第一个属性决定上下 第2个决定左右
    3个属性时: 上 左右 下
    4个属性时: 上 右 下 左(顺时针)
    */
    padding: 10px 30px 50px 80px;
    }
    </style>
    </head>
    <body>
    <div id="one" >
    <div id="two" >
    </div>
    </div>
    </body>
    </html>

  • 相关阅读:
    react native 添加mobx
    js-(19,999,999.00)
    html移动端 -- meta-模板 + rem
    HTML5 移动端头部标签
    js
    html --- rem
    es6--async--await
    nrm+nvm
    js-call-apply
    SQL映射文件
  • 原文地址:https://www.cnblogs.com/nextgg/p/7646238.html
Copyright © 2011-2022 走看看