本文实例为大家分享了jQuery实现手风琴效果的具体代码,供大家参考,具体内容如下
代码:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> *{ padding:0; margin:0; } ul,ol{ list-style: none; } .box{ width: 900px; height: 300px; border:1px solid #333; margin:50px auto; position: relative; overflow: hidden; } .box ul li{ position: absolute; width: 560px; height: 300px; top:0px; } .box ul li.no0{ left:0px; } .box ul li.no1{ left:180px; } .box ul li.no2{ left:360px; } .box ul li.no3{ left:540px; } .box ul li.no4{ left:720px; } /*蒙版效果*/ .mask{ position: absolute; width: 560px; height: 300px; top:0; left: 0; background-color: rgba(0,0,0,.5); } </style> </head> <body> <div class="box" id="box"> <ul> <li class="no0"> <div class="mask"></div> <a href=""><img src="/UploadFiles/2021-04-02/0.jpg">以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
最新资源
- 【中国民乐】张维良《秋江夜泊》2004[FLAC+CUE]
- 明达年度发烧碟MasterSuperiorAudiophile2011[D
- 明达年度发烧碟MasterSuperiorAudiophile2017[D
- 翁立友.2008-恨孤单【大旗】【WAV+CUE】
- 群星.2009-Magic.Cover日粤精华3CD【环球】【WA
- 华少翌.2005-华少翌【中唱艺能】【WAV+CUE】
- 群星《十二女声Ⅱ》[WAV/CUE/分轨][527MB]
- 大自然音乐系列《漫步在山裡》[WAV/CUE/分轨][5
- 大自然音乐系列《星光夜语》[WAV/CUE/分轨][453
- 史依弘《史依弘交响乐京剧演唱专辑HQ》头版限量