想要使用多重背景图片功能,只需要对background-image属性的值进行修改。
【例题】设置多重背景图片
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
width: 800px;
height: 413px;
background-image:url('花.png'),url('点.jpg');
background-position: right bottom;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
已有 22658 名学员学习以下课程通过考试
最需教育客户端 软件问题一手掌握
去 App Store 免费下载 iOS 客户端
点击加载更多评论>>