zoukankan      html  css  js  c++  java
  • CSS 中区块的使用_宽高属性

    width 像素/百分比 区块的宽度 auto
    height 像素/百分比 区块的高度 auto
    min-height 像素像素/百分比 区块最小高度 auto
    max-height 像素像素/百分比 区块最大高度 auto
    min-width 像素像素/百分比 区块最小宽度 auto
    max-width 像素像素/百分比 区块最大宽度 auto

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CSS 中区块的使用</title>
    <style type="text/css">
    div{
        background-color:#0F0;
        width:900px;
        min-height:60px;
        max-height:20px;
    }
    </style>
    </head>
    <body>
    <div>
        6、你不能当饭吃,但没有你,我吃不下饭。  
        7、要有多大的身躯,才能撑起您那龌龊的灵魂啊!  
        8、做男人的最高境界不是你去泡妞,而是让妞来泡你。 
        9、有心才会累,无心者无所谓。 
        10、本人鄙视那些,常用表情聊天的人。  
        11、考试考得好,全靠同桌好。  
        12、在学校是那钱混日子,现在是拿日子混钱!  
        13、一些人,总要出卖他所有的,去换取他所没有的。 
        14、自爱,必先自私,唯有自私,才能大爱。  
        15、吉尼斯纪录:全世界最大的茶几面积为960万平方千米,可放置13亿杯具。  
        16、分手多没意思,有本事咱俩玩离婚!  
        17、走人民币的路,让人民无路可走!  
    </div>
    </body>
    </html>
  • 相关阅读:
    88. Merge Sorted Array
    87. Scramble String
    86. Partition List
    85. Maximal Rectangle
    84. Largest Rectangle in Histogram
    83. Remove Duplicates from Sorted List
    82. Remove Duplicates from Sorted List II
    81. Search in Rotated Sorted Array II
    80. Remove Duplicates from Sorted Array II
    计算几何——点线关系(叉积)poj2318
  • 原文地址:https://www.cnblogs.com/LO-ME/p/3587890.html
Copyright © 2011-2022 走看看