img前置显示屏装load图片

只需要设置img的background能够


 <img src="" alt="" class="detailImg"  >


css设置:

#detailModel .detailImg{
    100%;
    border-radius: 5px;
    border: 1px solid #c3c3c3;
    background:url("../img/load2.gif") no-repeat  center 50%;


}

版权声明:本文博客原创文章。博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/gcczhongduan/p/4711603.html