老师,请检查

来源:7-1 定位案例

勤劳学生

2020-04-01 12:02:04

老师 ,请看看我的代码 我的图片跟影片图上显示不一样,如何删除我的logo的边框?

http://img.mukewang.com/climg/5e841209099e4a6510000604.jpg以下代码:

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet"  type="text/css"  href="index.css">
</head>
<body>
	<div class="div0">
	<div class="div1">
   	<div class="div2"></div>
   	<img class="img1" src="image/cart1.jpg">
   </div>
  </div>
</body>
</html>
.div0{
	width:500px;
	height:300px;
	background-color:#667766;
	position: relative;
	top:150px;
	left: 300px;
}
.img1{
	width:30px;
	height:30px;
  position: absolute;
	bottom:10px;
	right:30px;
}
.div1{
	width:300px;
	height: 200px;
	background-color: red;
	top: 60px;
	left: 100px;
	position: absolute;
}


写回答

1回答

好帮手慕小尤

2020-04-01

同学你好,同学并没有为logo设置边框,所以无法取消,那应该是图片本身的样子,如果同学只想有一个购物车,则同学可以使用源码中提供的图片。如下所示:

http://img.mukewang.com/climg/5e84386b0970bf4906910138.jpg

如果我的回答解决了你的疑惑,请采纳!祝学习愉快!

0

0 学习 · 9666 问题

查看课程