zoukankan      html  css  js  c++  java
  • 背景(background)

    背景(background)
    背景家族由5个主要的背景属性组成

     background-color背景颜色

    background-color:colorNome(取值 如:颜色名 red green、  reb(255,255,255) s十六颜色值:#fff

    注意:透明 transparent //背景透明

    div{ background:red  background:transparent; }//完全没有颜色

    backaground-image 背景图 (注意:一般配合(background-color)联合使用)

    background-imgage:url(图片路径)

    background-repeat 设置背景图平铺模式

    background-repeat:repeat(默认 平铺) 
    no-repeat 不平铺  
    repeat-x 水平方向平铺 
    repeat-y 垂直方向平铺

    background-position 背景定位

    .site-nav-r .jd-ted{
        padding-left:25px; background: url(../img/tel.png) no-repeat ;
        background-position: 5px 6px; (左右 上下)
        }
    属性取值:百分比:10%     
           像素:10px 
           方位名词:(水平:left right center (垂直:ttop bottom center
     
    background-attachment 背景定位 用去背景岁这个页面动
    background-attachment:status (默认)背景图会随着页面其余部分的滚动而滚动
                          fixed;固定,当页面的其余部分滚动时,背景图不会滚动
                          inherit:从父元素继承
  • 相关阅读:
    Autofac(01)
    深入理解ADO.NET Entity Framework(02)
    使用excel 数据透视表画图
    C# 控制CH341进行SPI,I2C读写
    C# winform使用combobox遍历文件夹内所有文件
    通用分页存储过程
    如何让你的SQL运行得更快
    sql优化之使用索引
    SQL优化
    SQL 循环语句几种写法
  • 原文地址:https://www.cnblogs.com/wdz1/p/7207234.html
Copyright © 2011-2022 走看看