做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

滾動條動態固定頂部的實例代碼分享

來源:懂視網 責編:小采 時間:2020-11-27 15:29:59
文檔

滾動條動態固定頂部的實例代碼分享

滾動條動態固定頂部的實例代碼分享:滾動條動態固定頂部的實例代碼分享,代碼如下:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js滾動到指定位置導航欄固定頂部</title> <style type=&
推薦度:
導讀滾動條動態固定頂部的實例代碼分享:滾動條動態固定頂部的實例代碼分享,代碼如下:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js滾動到指定位置導航欄固定頂部</title> <style type=&

滾動條動態固定頂部的實例代碼分享,代碼如下:

<!DOCTYPE html>
<html>
 <head>
 <meta charset="UTF-8">
 <title>js滾動到指定位置導航欄固定頂部</title>
 <style type="text/css">
 body{height: 2500px; margin: 0; padding: 0;}
 .banner{height: 250px; width: 100%; background: #e5e5e5;}
 .bignav{width: 100%; background: #000;}
 .nav{ background:#000; width: 1200px; margin: 0 auto; height: 45px;}
 .nav a{display: block; width: 200px;float: left; color: #fff; text-decoration: none; text-align: center; line-height: 45px;}
 </style>
 </head>
 <body>
 <div class="banner">
 </div>
 <div class="bignav" id="bignav">
 <div class="nav">
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >首頁</a>
 </div>
 </div>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <p>其他內容</p>
 <script type="text/javascript">
 window.onscroll=function(){
 var topScroll =document.body.scrollTop;//滾動的距離,距離頂部的距離
 var bignav = document.getElementById("bignav");//獲取到導航欄id
 if(topScroll > 250){ //當滾動距離大于250px時執行下面的東西
 bignav.style.position = 'fixed';
 bignav.style.top = '0';
 bignav.style.zIndex = '9999';
 }else{//當滾動距離小于250的時候執行下面的內容,也就是讓導航欄恢復原狀
 bignav.style.position = 'static';
 }
 }
 </script>
 </body>
</html>

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

滾動條動態固定頂部的實例代碼分享

滾動條動態固定頂部的實例代碼分享:滾動條動態固定頂部的實例代碼分享,代碼如下:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>js滾動到指定位置導航欄固定頂部</title> <style type=&
推薦度:
標簽: 滾動 代碼 固定
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top 主站蜘蛛池模板: 长寿区| 西和县| 文成县| 胶南市| 晋宁县| 四子王旗| 红河县| 平南县| 永登县| 庆城县| 中西区| 承德县| 大连市| 武邑县| 山西省| 绥德县| 华亭县| 西宁市| 新安县| 阿拉善盟| 中牟县| 方山县| 合肥市| 贵州省| 阿荣旗| 瓦房店市| 泾源县| 上杭县| 柘城县| 上犹县| 清丰县| 连云港市| 车险| 东安县| 义乌市| 托克逊县| 崇州市| 灯塔市| 富川| 惠州市| 霍林郭勒市|