zoukankan      html  css  js  c++  java
  • css使用技巧

    1) 网站上经常会出现用户输入一大段字符和字母以至于文字无法正常折行,把版式破坏,这样我们就要参考以下样式:word-wrap:break-word; overflow:hidden; 当然必须得有宽度属性值。

    2) 文字过长要出现省略号样式如下:

    white-space: nowrap; text-overflow:ellipsis; overflow:hidden;

    3) 一个完整的表单应该包括:

    <fieldset>
    <legend></legend>
    <label></label>
    <input />
    </fieldset>

    4)按照推荐Css属性书写顺序:

    显示属性:

    display || visibility
    list-style : list-style-type || list-style-position || list-style-image
    position
    top || right || bottom || left
    z-index
    clear
    float

    自身属性:   

    width
    max-width || min-width
    height
    max-height || min-height
    overflow || clip
    margin : margin-top || margin-right || margin-bottom || margin-left
    padding : padding-top || padding-right || padding-bottom || padding-left
    outline : outline-color || outline-style || outline-width
    border
    background : background-color || background-image || background-repeat || background-attachment || background-position

    文本属性:

    color
    font : font-style || font-variant || font-weight || font-size || line-height || font-family
    font : caption | icon | menu | message-box | small-caption | status-bar
    text-overflow
    text-align
    text-indent
    line-height
    white-space
    vertical-align
    cursor

  • 相关阅读:
    C#中值类型和引用类型
    C#XML
    矩阵操作2
    scala安装
    Linux拷贝U盘文件(命令行)
    通过电脑,模拟点击手机屏幕 /手机自动点击,刷金币?
    python类
    矩阵操作
    数据预处理函数
    train_test_split数据切分
  • 原文地址:https://www.cnblogs.com/zmh7057/p/3812544.html
Copyright © 2011-2022 走看看