做爰高潮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
當前位置: 首頁 - 科技 - 知識百科 - 正文

jQuery實現滑動頁面固定頂部顯示的功能

來源:懂視網 責編:小采 時間:2020-11-27 19:35:07
文檔

jQuery實現滑動頁面固定頂部顯示的功能

jQuery實現滑動頁面固定頂部顯示的功能:這篇文章主要介紹了jQuery實現滑動頁面固定頂部顯示,還可根據顯示位置消失與替換對應的當前顯示項,具有一定參考借鑒價值,需要的朋友可以參考下本文實例講述了jQuery實現滑動頁面固定頂部顯示(可根據顯示位置消失與替換)。分享給大家供大家參考,具體如下:這
推薦度:
導讀jQuery實現滑動頁面固定頂部顯示的功能:這篇文章主要介紹了jQuery實現滑動頁面固定頂部顯示,還可根據顯示位置消失與替換對應的當前顯示項,具有一定參考借鑒價值,需要的朋友可以參考下本文實例講述了jQuery實現滑動頁面固定頂部顯示(可根據顯示位置消失與替換)。分享給大家供大家參考,具體如下:這
這篇文章主要介紹了jQuery實現滑動頁面固定頂部顯示,還可根據顯示位置消失與替換對應的當前顯示項,具有一定參考借鑒價值,需要的朋友可以參考下

本文實例講述了jQuery實現滑動頁面固定頂部顯示(可根據顯示位置消失與替換)。分享給大家供大家參考,具體如下:

這里介紹的jQuery拉動頁面固定頂部顯示,及自動消失效果,可能ie瀏覽器下有問題,不過火狐什么的都可以運行看效果,一個簡單的網頁特效,也是很常用的“回到頂部”效果,有興趣的看一下。

運行效果截圖如下:

具體代碼如下:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>回到頂部:哭泣的小丑</title>
<script src="jquery-1.6.2.min.js"></script>
<!-- CSS模板清除 -->
<style>
html, body, p, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend, input,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed,figure, figcaption, footer, header, hgroup,menu, nav, output, ruby, section, summary,time, mark, audio, video {margin: 0;padding: 0;border: 0;font-size: 100%;}
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;float:left;}select, input, button,button img, label {vertical-align: middle;}body {font:normal 12px/1.5 "Microsoft Yahei","微軟雅黑",Tahoma,Arial,Helvetica,STHeiti; webkit-font-smoothing:antialiased;-moz-font-smoothing: subpixel-antialiased; color:#666;}ol, ul {list-style: none;}blockquote, q {quotes: none;}blockquote:before, blockquote:after,q:before, q:after {content: '';content: none;}table {border-collapse: collapse;border-spacing: 0;}em {font-style: normal}select, input, button, button img, label {vertical-align:middle;}input {font-family:"Microsoft Yahei","微軟雅黑";webkit-font-smoothing:antialiased;-moz-font-smoothing: subpixel-antialiased}input, input:focus, button, button:focus, select,textarea, textarea:focus {outline:none; -moz-outline:none; -webkit-outline:none; }input:focus { outline:none; -moz-outline:none; -webkit-outline:none; }textarea {resize:none;}a {color:#666; text-decoration:none;} a:hover {text-decoration:underline;}a:focus {outline:none; -moz-outline:none;-webkit-outline:none;}body {min-width: 960px;}
</style>
<!-- CSS模板清除 E-->
<!-- main CSS -->
<style>
body{background:#e7e7e7;}
.clearfix:before, .clearfix:after, .container_24:before, .container_24:after {
 content: '.'; display: block; overflow: hidden; visibility: hidden; font-size: 0; line-height: 0; width: 0; height: 0;}
.clearfix:after, .container_24:after { clear: both; }
.Xc_main{width:750px;margin:0 auto;position:relative;}
.Xc_left{float:left;}
.Xc_left h1{font-size:24px;padding-top:25px;}
.Xc_right{float:right;width:600px;}
.Xc_right .Xc_list{margin:10px 0 10px 0;}
.Xc_list_top,.Xc_list_main{background:#fff;padding:10px;border:1px solid #ccc;}
.Xc_list_top{margin-bottom:10px;}
.Xc_gg{width:90px;height:90px;border:1px solid #ccc;background:#fff;text-align:center;}
.Xc_bottom{height:650px;background:#fff;padding:10px;border:1px solid #ccc;position:relative;}
</style>
<!-- main CSS E-->
</head>
<script>
$(function () {
 $(".Xc_list_top").css("width",$(".Xc_list_main").width());
 var resetRightPanelPostion = function () {
 var msie6 = $.browser.msie && $.browser.version == '6.0' && $.browser.version < 7;
 if ($.browser.safari) {
 bodyelem = $("body");
 } else {
 bodyelem = $("html,body");
 }
 var bodyTop = bodyelem.scrollTop();
 var top = $(".Xc_left").offset().top;
 //var t = $("#public_footer").offset().top;
 var t = $("#footerDestinationBox").offset().top;
 //var bottom = $("#footerDestinationBox").offset().top;
 for(var i = 0 ; i < $(".Xc_list .Xc_list_top").length ; i++){
 if (bodyTop >= top && ((bodyTop + $(".Xc_left").outerHeight()) < t)) {
 if (!msie6) {
 if (bodyTop + $(".Xc_gg").outerHeight() >= t) {
 $(".Xc_gg").removeClass('fixed').css({
 "position": "absolute",
 "top": t - $(".Xc_gg").outerHeight() + "px"
 });
 } else {
 $(".Xc_gg").css({
 "position": "fixed",
 "top": 0
 });
 }
 }
 } else {
 if (!msie6) {
 $(".Xc_gg").css({
 "position": "static"
 });
 }
 }
 if(bodyTop>$(".Xc_list").eq(i).offset().top){
 $(".Xc_list_top").eq(i).css({position:"absolute",top:top-168});
 }
 if(bodyTop>$(".Xc_list").eq(i).offset().top){
 $(".Xc_list_top").eq(i).css({position:"fixed",top:0});
 }
 if(bodyTop<=$(".Xc_list").eq(i).offset().top){
 $(".Xc_list_top").eq(i).css({position:"static",top:0});
 }
 }
 };
 window.onload = function () {
 if ($(".Xc_gg").length) {
 resetRightPanelPostion();
 $(window).scroll(function () {
 resetRightPanelPostion();
 });
 }
 }
})
</script>
<body>
<p class="Xc_main clearfix">
 <p class="clearfix" style="margin-top:90px;float:left;">
 <p class="Xc_left">
 <p class="Xc_gg">
 <h1>小丑</h1>
 <p style="margin-top:40px;">Q群:<em style="color:#0069D6;">150508281</em></p>
 </p>
 </p>
 </p>
 <p class="Xc_right clearfix">
 <p class="Xc_list">
 <p class="Xc_list_top" id="Xc_list_top">top 1</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 <p class="Xc_list">
 <p class="Xc_list_top">top 2</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 <p class="Xc_list">
 <p class="Xc_list_top">top 3</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 <p class="Xc_list">
 <p class="Xc_list_top">top 4</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 <p class="Xc_list">
 <p class="Xc_list_top">top 5</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 <p class="Xc_list">
 <p class="Xc_list_top">top 6</p>
 <p class="Xc_list_main" style="height:300px;background:#fff;">
 </p>
 </p>
 </p>
</p>
<p class="Xc_bottom clearfix" id="footerDestinationBox">
 <p style="position:absolute;top:40px;right:50px;"> by 藍色理想 @哭泣的小丑</p>
</p>
</body>
</html>

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

文檔

jQuery實現滑動頁面固定頂部顯示的功能

jQuery實現滑動頁面固定頂部顯示的功能:這篇文章主要介紹了jQuery實現滑動頁面固定頂部顯示,還可根據顯示位置消失與替換對應的當前顯示項,具有一定參考借鑒價值,需要的朋友可以參考下本文實例講述了jQuery實現滑動頁面固定頂部顯示(可根據顯示位置消失與替換)。分享給大家供大家參考,具體如下:這
推薦度:
標簽: 設置 顯示 頁面
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top 主站蜘蛛池模板: 丰台区| 砚山县| 五大连池市| 镇康县| 疏勒县| 元江| 仙游县| 元谋县| 临漳县| 临朐县| 温泉县| 东台市| 淮阳县| 泾源县| 新民市| 铁力市| 怀宁县| 吴川市| 弥渡县| 龙川县| 长顺县| 镇巴县| 尼勒克县| 灯塔市| 洞头县| 吉木萨尔县| 雅江县| 千阳县| 海晏县| 谢通门县| 宁陕县| 无为县| 灵台县| 宁远县| 内黄县| 石城县| 吴忠市| 乐陵市| 黄山市| 内江市| 监利县|