zoukankan      html  css  js  c++  java
  • css样式之边框和内外边距

    1、css样式之边框:border

    实心的边框:

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>页面一</title>
    </head>
    <body>

             <div style="border:1px solid blue;height:200px"></div>
    </body>
    </html>

    虚心的边框:

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>页面一</title> 
    </head>
    <body>

             <div style="border:1px dotted blue;height:200px"></div>
    </body>
    </html>

    2、css样式之内外边距

    外边距:margin

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>页面一</title>
    </head>
    <body>

        <div style="height:200px;border:1px solid red;">
            <div style="height:30px;background-color:#999;margin-top:10px;margin-left:1250px;margin-right:10px;">
            guojianglin
            </div>
        </div>
    </body>
    </html>

    内边距:padding

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>页面一</title> 
    </head>
    <body>

        <div style="height:200px;border:1px solid red;">
             <div style="height:30px;background-color:#999;padding-top:50px;">
              guojianglin
             </div>
        </div>

    </body>
    </html>

    塑造ing
  • 相关阅读:
    C# SocketUdpServer
    C# HttpHelper
    控制台禁止操作
    Modbus Com SerialPort
    postgresql 备份与恢复
    Firebird 表字段查询
    Postgresql 连接更新
    第 1 章 计算机组成与体系结构 1.1计算机系统组成
    系统架构设计师教程(第4版)
    阿里十年架构师用一张图告诉你什么是系统架构师
  • 原文地址:https://www.cnblogs.com/Brin-guo/p/4845350.html
Copyright © 2011-2022 走看看