css background with border background: url

Use background: url provided with a border when the background image;

Code did not set the border,

Code is as follows: 
<IMG class = "IMG-div-Result-Success"
>

Style follows:
.div-result-img-success {
position: absolute;
top: 0;
left: 1.3rem;
width: 3.5rem;
height: 3.6rem;
background: url('//static.bnq.com.cn/fuli-success.png') center no-repeat;
background-size: contain;
border: none;
}

Solution: img ultimately found to be using background: url property issues. So instead div will solve the problem img


<div class="div-result-img-success "
>

 

 

 

Guess you like

Origin www.cnblogs.com/gznuhaoge/p/11608447.html