分享一个html+css对联广告位的代码,网站通用

分享一个对联广告位的代码,网站通用,留着存放,哪天说不定用到了

html代码,放到固定的位置

<div class="J_index_wall index-wall-left index-wall-fixed"><a href="></a></div>
<div class="J_index_wall index-wall-right index-wall-fixed"><a href=""></a></div>

css样式代码

.index-wall-left {
    width: 350px;
    height: 528px;
    position: absolute;
    top: 120px;
    margin-left: -366px;
    background: url(https://eimg.smzdm.com/201912/23/5e005a69169374667.png) no-repeat right top;
    background-size: contain;
    z-index: 10;
}
.index-wall-right {
    width: 350px;
    height: 528px;
    position: absolute;
    top: 120px;
    margin-left: 1140px;
    background: url(https://eimg.smzdm.com/201912/23/5e005a6dcfa5a5135.png) no-repeat left top;
    background-size: contain;
    z-index: 10;
}
.index-wall-fixed {
    position: fixed;
}

效果图所示

6081243.png

文章由官网发布,如若转载,请注明出处:https://www.veimoz.com/134
0 评论
3.8k

发表评论

!