就是这种图,该怎么设置呢?想要像这个链接里这样的效果,我只会把背景图弄成全屏,但没法往下拉的时候显示出余下部分。。。
中国移动
https://dev.coc.10086.cn/coc/web1/contractsposter/?pageId=1321761317590114304&channelId=P00000000384&channelSeqId=7&cuid=baidutiebaappef477a5d-c9b5-493a-bc73-5562ee193f7b&cuid_galaxy2=2B5AD02F8E1A343E8028BA7E7AA238D0%7CO&cuid_gid=×tamp=1629373549254&_client_version=12.7.1.1

移动端长图如何设置成背景图片?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- CSDN专家-天际的海浪 2021-08-19 22:43关注
直接用img标签放图片就好了
要设置成背景可以把img 设置为position: absolute; 绝对定位并设置 z-index: -1;放到文字下面<img src="1.jpg" width="350" height="5000" alt="" style="position: absolute; top: 0; left: 0; z-index: -1;" />
解决 无用评论 打赏 举报