美文网首页
背景 普通及复合背景

背景 普通及复合背景

作者: 张威先森 | 来源:发表于2018-09-26 14:54 被阅读0次

<style>
div{
width: 200px;
height: 200px;
/background-color:red;/
/background-image: url("images/game03.jpg");/
/*
背景图片
默认x y轴重复
/
/
background-repeat: no-repeat;/
/

背景是否需要重复
no-repeat 不重复
repeat-x x轴重复
repeat-y y轴重复
*/

        /*
            背景位置
                x轴 y轴
                英文 left right top bottom center
                像素
         */
        /*background-position: left,top;*/

        /*
            复合样式
         */
        background:url("images/game02.jpg") no-repeat red left bottom;
    }
</style>

相关文章

  • 背景 普通及复合背景

    div{width: 200px;height: 200px;/background-color:red;//ba...

  • CSS background背景

    CSS背景属性 CSS背景属性用于设置HTML元素的背景(填充),复合属性 background 可以用来设置背景...

  • CSS-2

    1.复合选择器 2.emmet语法 3.背景色 背景图片 背景平铺 背景位置 背景相关属性连写 4.元素显...

  • CSS(下篇

    background 是复合属性 背景颜色: 背景图片: 铺平的方式: 设置背景图片大小: 背景图片定位移动: 设...

  • Tableau背景地图

    无背景地图 脱机背景地图 在线背景地图—普通 在线背景地图—浅色 在线背景地图—黑色

  • 我的H5自学路之背景相关知识

    一、背景(background) 它是单一属性 但是它衍生出很多的复合属性 background-color 背景...

  • 第3章 高级图片背景图片技术

    background-size: 使得背景图片可缩放 单一容器上的复合图片复合背景图片也是有层次的显示的,最先声明...

  • web前端 -- Day4基础知识

    背景属性 在css中,背景值通过background控制,它也是一个复合属性。背景图定位坐标的书写方式:1、方向特...

  • CSS相关---复合选择器

    第01阶段.前端基础 CSS 复合选择器 复合选择器后代选择器并集选择器 标签显示模式 CSS背景背景位置 CSS...

  • css

    背景是一个复合属性: 1、background-color: 背景颜色 颜色的取值方式: 1、英文 2、16进制 ...

网友评论

      本文标题:背景 普通及复合背景

      本文链接:https://www.haomeiwen.com/subject/clodoftx.html