zoukankan      html  css  js  c++  java
  • css中background背景属性概

    css中background背景属性概

    background:url(背景图片路径)  no-repeat;/*不重复默认在左上方*/

    background:url(背景图片路径)  no-repeat center;/*不重复背景图片中间显示*/

    background:url(背景图片路径)  no-repeat bottom center;/*不重复背景图片底部中间显示*/

    background:url(背景图片路径)  no-repeat right top;/*不重复背景图片右上方显示*/

    background:url(背景图片路径)  no-repeat right bottom;/*不重复背景图片右下方显示*/

    background:url(背景图片路径)  no-repeat left bottom;/*不重复背景图片左下方显示*/

    background:url(背景图片路径)  #000 no-repeat;/*背景色上插入不重复背景图片*/


    background:url(背景图片路径)  no-repeat 0px 0px;/*不重复背景图片定位第一个0px是指x轴也就是横向,第二个0px是指y轴也就是纵向*/

    background:url(背景图片路径)  repeat-x;/*背景图片横向平铺*/

    background:url(背景图片路径)  repeat-y;/*背景图片纵向平铺*/

    background:url(背景图片路径)  repeat;/*背景图片满屏平铺*/

  • 相关阅读:
    mongodb简介
    tomcat简介
    date的详细说明
    30岁前成功的12条黄金法则
    2012春晚经典语录
    统计文件中某个单词出现的次数
    nginx简介
    ATM取款机系统模拟仿真
    十三种时间管理方法
    笔试常见的智力题 附答案
  • 原文地址:https://www.cnblogs.com/originate918/p/6216655.html
Copyright © 2011-2022 走看看