国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > JS > 正文

javascript實(shí)現(xiàn)圣旨卷軸展開(kāi)效果(代碼分享)

2024-05-06 16:36:07
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

代碼如下:

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><script type="text/javascript" src="jQuery 3.1.1.js"></script><title>詔書(shū)</title><style type="text/css">body,ul,li,p,h1,h2,h3,h4,h5{ margin:0; padding:0; font-size:100%;}body{ font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', Tahoma, Helvetica, Sans-Serif; font-size: 50px; background: #6f0b02;}img{ border:0;}.content{ position: relative; margin: 40px 0 0 -21px; width: 900px; height: 460px;}.l-pic-index{ position: absolute; left: 400px; top: 1px; z-index:2; width:50px; height:460px; background: url("images/11.png") no-repeat right 0;}.r-pic-index{ position: absolute; right: 400px; top: 0; z-index: 2; width:50px; *width:82px; height:460px; background: url("images/11.png") no-repeat left 0;}.l-bg-index{ position: absolute; top: 20px;/*中間轉(zhuǎn)軸位置*/ left: 430px; z-index: 1; width: 25px; height: 459px; background: url("images/bg1.png") right 0 no-repeat;}.r-bg-index{ position: absolute; top: 20px; right: 430px; z-index: 1; width: 25px; height: 459px; background: url("images/bg1.png") 0 0 no-repeat;}.main-index{ display: none; overflow: hidden; zoom:1; position: absolute; z-index: 5; width:700px; height:280px; left:90px; top:90px; color: #2e2e2e;}.intro-text{ margin: 10px 0 0 44px; line-height: 2; text-indent: 3px;}</style></head><body><div class="content">  <div class="l-pic-index"></div><!--左轉(zhuǎn)軸-->  <div class="r-pic-index"></div><!--右轉(zhuǎn)軸-->  <div class="l-bg-index"></div>  <div class="r-bg-index"></div>  <div class="main-index">   <!-- <h1 class="title"><img src="./img/intro-title.png"     <p class="intro-text">      奉天承運(yùn)皇帝詔曰:下班沒(méi)?     </p>  </div> </div></body><script>  window.onload = function(){    //卷軸展開(kāi)效果  $(".l-pic-index").animate({'left':'50px','top':'-5px'},1450);  $(".r-pic-index").animate({'right':'-60px','top':'-5px'},1450);  $(".l-bg-index").animate({'width':'433px','left':'73px'},1500);  $(".r-bg-index").animate({'width':'433px','right':'-38px'},1500,function(){   $(".main-index").fadeIn(800);  });  }</script></html>

以上就是本文的全部?jī)?nèi)容,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來(lái)一定的幫助,同時(shí)也希望多多支持VeVb武林網(wǎng)!


注:相關(guān)教程知識(shí)閱讀請(qǐng)移步到JavaScript/Ajax教程頻道。
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 大埔区| 育儿| 铜陵市| 长顺县| 马山县| 施秉县| 杭州市| 滨州市| 应城市| 萨迦县| 宜君县| 陕西省| 钦州市| 绥芬河市| 台州市| 宁德市| 怀来县| 丘北县| 乐平市| 邹平县| 泸定县| 庆云县| 灵石县| 增城市| 高雄县| 乐业县| 深泽县| 右玉县| 北流市| 大竹县| 洪江市| 东乡县| 靖州| 泾源县| 静宁县| 宝坻区| 开平市| 天峨县| 青川县| 天峨县| 泰来县|