就是这种图,该怎么设置呢?想要像这个链接里这样的效果,我只会把背景图弄成全屏,但没法往下拉的时候显示出余下部分。。。
中国移动 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
直接用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;" />
设置为背景图 你得设置盒子的高度;直接使用img标签
-webkit-touch-callout:none; /系统默认菜单被禁用/
-webkit-user-select:none; /webkit浏览器/
user-select:none;
禁止长按事件