0
点赞
收藏
分享

微信扫一扫

CSS案例-3.背景练习

大柚子top 2024-03-22 阅读 5

效果1

用背景加入图标

效果2

将图片设为页面背景,图片主体在中间

效果3

鼠标放到导航栏上会变颜色

知识点

CSS背景

属性

描述

取值

background

复合属性

看独立属性

background-color

背景颜色

<color>

background-image

背景图像

none | url

background-repeat

背景图像如何平铺填充

repeat-x | repeat-y | no-repeat | repeat

background-attachment

背景图像是随对象内容滚动还是固定的

fixed | scroll

background-position

背景图像的位置

<percentage> | <length> | [left | c

举报

相关推荐

0 条评论