mark一下
照片長(zhǎng)這樣
html長(zhǎng)這樣
<div>
<img src="xx.jpg" data-sp-src="/xx.jpg" alt="">
<div class="mask"></div>
</div>
css長(zhǎng)這樣
.mask{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
background-image: linear-gradient(-45deg, transparent 25%, rgba(0, 0, 0, .2) 25%, rgba(0, 0, 0, .2) 50%, transparent 50%, transparent 75%, rgba(0, 0, 0, .2) 75%, rgba(0, 0, 0, .2));
background-position: left top;
background-size: 4px 4px;
background-repeat: repeat;
}
有機(jī)會(huì)用一用=v=