• CSS3基础:background背景


                background-color:   背景颜色
                background-image:   图片位置
                background-repeat: 插入的图片是否重复堆叠 ,可以是no-repeat  repeat  repeat-x  repeat-y
                background-position: 图片的位置,可以写top center left right buttom 等 顺序可以乱,但是如果要写精确位置,必须按照 x方向,y方向顺序写,例如12px 24px,表示图片距离左边边界12px,距离上面边界24px
                background-attachment: fixed;滚动页面时,图片是否固定。scroll(滚动)  fixed(固定)
                background: rgba(0,0,0,0.3);第四个数字处在(0,1)之间设置透明度

    也可以写的简单一点:

    1. body{
    2. background: aliceblue url(image/11.jpg) no-repeat top center fixed ;
    3. }

    顺序可以乱

  • 相关阅读:
    NLP中的文本分类、实体识别、关系识别和三元组识别
    Git命令入门
    PHP Zip File 函数
    低代码开发如何助力数字化企业管理系统平台构建
    ElasticSearch从入门到精通--第五话(整合SpringBoot高效开发、分页高亮等、Kibana使用篇)
    一张照片,如何生成一个二维码?
    C语言典范编程
    国旗升降系统程序及原理图资料
    【子平真诠】擂台赛中的一个癸生子月的坤造
    【QT】QT6.3新特性,以及使用技巧
  • 原文地址:https://blog.csdn.net/qq_54517101/article/details/126132820