老师救救孩子吧
我抄别人的都不对?!咋回事啊
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>background-image</title>
<style type="text/css">
此处写代码
/* div{
height:300px;
width: 300px;
background:
#efefef
url(http://img1.sycdn.imooc.com/climg//582c3b780001a95103000090.jpg) no-repeat center top ,
url(http://img1.sycdn.imooc.com/climg//582c3b6d0001197603000090.jpg) no-repeat center center,
url(http://img1.sycdn.imooc.com/climg//582c3b61000122dd03000090.jpg) no-repeat center bottom ;
}*/
div{
width:300px;
height:300px;
background:
url(http://img1.sycdn.imooc.com/climg//582c3b780001a95103000090.jpg) no-repeat center top
,url(http://img1.sycdn.imooc.com/climg//582c3b6d0001197603000090.jpg) no-repeat center center
,url(http://img1.sycdn.imooc.com/climg//582c3b61000122dd03000090.jpg) no-repeat center bottom;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div></div>
</body>
</html>
正在回答
同学你好,是因为代码中的中文没有注释导致的,可以参考下方修改
如果我的回答帮到了你,欢迎采纳,祝学习愉快~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星