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

首頁 > 編程 > JavaScript > 正文

javascript實現圣旨卷軸展開效果(代碼分享)

2019-11-19 17:04:10
字體:
來源:轉載
供稿:網友

效果圖:

代碼如下:

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><script type="text/javascript" src="jQuery 3.1.1.js"></script><title>詔書</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;/*中間轉軸位置*/ 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><!--左轉軸-->  <div class="r-pic-index"></div><!--右轉軸-->  <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" alt=""></h1> -->     <p class="intro-text">      奉天承運皇帝詔曰:下班沒?     </p>  </div> </div></body><script>  window.onload = function(){    //卷軸展開效果  $(".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>

以上就是本文的全部內容,希望本文的內容對大家的學習或者工作能帶來一定的幫助,同時也希望多多支持武林網!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 垦利县| 神木县| 蒙阴县| 夏津县| 象州县| 华亭县| 尼玛县| 青龙| 大悟县| 石棉县| 六安市| 平武县| 南乐县| 当阳市| 抚州市| 滕州市| 吉林市| 准格尔旗| 绿春县| 兖州市| 长寿区| 滨州市| 弥渡县| 满洲里市| 金堂县| 辉南县| 苍山县| 青海省| 英吉沙县| 长宁区| 安丘市| 永和县| 崇明县| 东乡族自治县| 临澧县| 淳化县| 焦作市| 焦作市| 遂川县| 安远县| 福鼎市|