This inner border transparent only works for single page or jsfiddle, But not working in my website, what's wrong with my code? Anyone can help plz…
on jsfiddle working good.
but my site photo does not show :(
I added z-index
and position: relative
to .item
class like this:
.item {
width: 21%;
float: left;
display: block;
margin: 20px 2%;
padding: 0px;
cursor: pointer;
/* Code added */
position: relative;
z-index: 0;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.