zoukankan      html  css  js  c++  java
  • css中一些常用的属性和属性值

     今天和大家分享一下有关css中的一些常用的属性和属性值:

    ①颜色属性  color  ②background   背景属性  其属性值有:

    1,Background-image: 背景图片

    2,Background-repeat: 背景重复

      Repeat-x(x轴方向重复) | repeat-y(y轴方向重复) |no-repeat(不重复)

    3,Background-attachment: 背景附件 scroll(默认值)  fixed(固定)

    4,Background-position:背景位置

      Left|center|right( 横向)

    T  op|center|bottom(纵向)

      像素

    (注意:background-position 两个值之间需要使用空格隔开)

    Background:<背景颜色>|<背景图片>|<背景重复>|<背景附件>|<背景位置>

    每个属性中间都要用空格隔开

      ③边框属性  1,border-style 边框样式  Border-top-style  Border-left-style  Border-bottom-style  Border-right-style

    属性值有:     dotted 点线  Dashed 虚线  Solid   实线  Double 双实线  Groove 槽状线  Ridge   脊线  Inset  内嵌效果  Outset 外凸效果

    Border-width 边框宽度  单位使用像素  同上

    Border-color  边框颜色  同上

    Border:边框宽度 边框样式 边框颜色

      ④文本属性  1,text-align 文本对齐方式   left|right|center  2,text-decoration 文本修饰  None(默认值) 通常我们使用这个属性将a标签的默认下划线取消  Underline 定义文本下的一条线  Overline 定义文本上的一条线  Line-through  定义穿过文本中的一条线  3,line-height 设置行间距离(行高)   不允许出现负值  作用:用来将文本居中显示 一般都是和设置的高度相同 让文字垂直居中显示

      

  • 相关阅读:
    DB2 for Z/os Statement prepare
    Foreign key (referential) constraints on DB2 LUW v105
    复制Informational constraints on LUW DB2 v105
    DB2 SQL Mixed data in character strings
    DB2 create partitioned table
    MVC中使用EF的技巧集(一)
    Asp.Net MVC 开发技巧(二)
    Linq使用技巧及查询示例(一)
    Asp.Net MVC 开发技巧(一)
    Asp.Net MVC Identity 2.2.1 使用技巧(八)
  • 原文地址:https://www.cnblogs.com/xlboy/p/7252979.html
Copyright © 2011-2022 走看看