你好,如果你的网页图片很多,要想都去掉边框,在css中统一写一行代码就可以了。
<style>img{border:0}
</style>
如果想单独去掉某1个img图片的边框,也可以单独定义。比如
<div class="pic"><img src="图片地址" alt=""></div>css写:
.pic img{border:0}
要加分哦
img没边框css样式 img{padding:0border:0margin:0display:block}
截取是 比如图片上的边框是1px
.div{background:url(图片地址) 1px 1px width:图片width-2height:图片height-2}
alert("你懂了吗?")