• 属性选择符和样式


    1.
    E F 包含选择符,择所有被E元素包含的F元素.
    2.
    E>F 子选择符,选择所有作为E元素的子元素F.
    3.
    E+F 相邻选择符,选择紧贴在E元素之后F元素。
    4.
    E~F 兄弟选择符,选择E元素所有兄弟元素F。
    5.
    E[att] 选择具有att属性的E元素。
    6.
    E[att="val"] 选择具有att属性且属性值等于val的E元素。
    7.
    E[att^="val"] 选择具有att属性且属性值为以val开头的字符串的E元素。
    8.
    E[att$="val"] 选择具有att属性且属性值为以val结尾的字符串的E元素。
    9.
    E::placeholder 设置对象文字占位符的样式。
    10.
    E::selection 设置对象被选择时的颜色。

    11.font样式第一种写法

    p{
                    font-family: "微软雅黑";
                    font-size: 80px;
                    font-weight: bold;
                    font-style: italic;
                }

    12.font第二种写法

    p{
                    font:italic bold 19px/20px "微软雅黑";
                }

    13.color

    p{
                    color:red;
                }

    14.text-decoration

    p{
                    text-decoration: overline;
                }
    p { text-decoration:underline;}
    
    p { text-decoration:line-through;}

    15.text-shadow

    p{
                    text-shadow:3px 3px 5px yellow;
                }

    16.width height padding margin

  • 相关阅读:
    NGUI UIEventListener
    Unity3d NGUI Panel 滑动菜单
    NGUI 密码输入框
    Unity3d 时间差
    Unity3d 添加组件脚本和建菜单
    c# [HideInInspector] 属性
    c# [System.Serializable]
    Activity 生命周期
    Unity3d OnApplicationPause与OnApplicationFocus
    C# 中 Struct 与 Class 的区别
  • 原文地址:https://www.cnblogs.com/qq498801877/p/5759685.html
Copyright © 2020-2023  润新知