最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

一個仿糯米彈框效果demo

 更新時間:2014年07月22日 11:19:31   投稿:whsnow  
這是一個仿糯米彈框效果demo,點擊文字即可彈出歡迎來到糯米網的界面,需要的朋友可以參考下

代碼如下:

<!doctype html> 
<html lang="en"> 
<head> 
<meta charset="UTF-8"> 
<title>Tabs</title> 
<style type="text/css"> 
/* Remove margin padding */ 
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td { margin:0; padding:0; } 

/* Default Font */ 
body,button,input,select,textarea { font:12px/1.5 \5b8b\4f53,arial,sans-serif; } 
h1,h2,h3,h4,h5,h6 { font-size:100%; } 
address,cite,dfn,em,var { font-style:normal; } 
code,kbd,pre,samp { font-family:courier new,courier,monospace; } 
small { font-size:12px; } 
ul,ol { list-style:none; } 
a { text-decoration:none; } 
a:hover { text-decoration:underline; } 
sup { vertical-align:text-top; } 
sub { vertical-align:text-bottom; } 
legend { color:#000; } 
fieldset,img { border:0; } 
button,input,select,textarea{ font-size:100%; } 
table { border-collapse:collapse; border-spacing:0; } 

.col-main{ float:left; width:100%; min-height:1px; } 
.col-sub,.col-extra { float:left; } 
.layout:after,.main-wrap:after,.col-sub:after,.col-extra:after { content:'\20'; display:block; height:0; clear:both; } 
.layout,.main-wrap,.col-sub,.col-extra { zoom:1; } 

/* Common Features */ 
.hidden { display:none; } 
.invisible { visibility:hidden; } 

/* Remove Float */ 
.clear { display:block; height:0; overflow:hidden; clear:both; } 
.clearfix:after { content:'\20'; display:block; height:0; clear:both; } 
.clearfix { *zoom:1; } 

/* For non ie browsers also display the vertical scroll bar by default, to prevent the flicker caused by the scroll bar */ 
html { overflow-y:scroll; } 

/* Default link styles */ 
a:link {color: #003399; } 
a:visited {color: #123689;} 
a:hover {color: #FF6600;} 
</style> 
</head> 
<body> 

<style type="text/css"> 
body { height:1000px; } 
.dialog-wrap, .dialog { display:none; } 
.dialog-wrap { position:absolute; top:0px; left:0px; width:100%; z-index:99; background:#000; } 
.dialog { 
border:10px; 
background:url(images/welcome91981.png) no-repeat; 
z-index:199; 
position:fixed; 
_position:absolute; 
width:451px; 
height:313px; 
top:50%; 
left:50%; 
margin:-156px 0px 0px -225px; 
border-radius:10px;text-align:left; 
} 
.dialog .city-box { position:relative; width:100%; height:100% } 
.dialog .close { position:absolute; width:18px; height:18px; top:16px; right:16px; z-index:205; } 
.dialog .close a { display:block; width:100%; height:100%; } 

.cityBox{position:absolute;cursor:pointer;top:143px;left:212px;height:30px;line-height:30px;font-size:16px;color:#f4396d;padding:0 30px 0 10px;display:inline-block; z-index:200; } 
.cityBox span{width:90px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block} 
.hotCityBox{position:absolute;width:272px;top:160px;left:170px;display:none;z-index:200;} 
.togle{color:#fff;position:absolute;left:50%;font-size:28px;z-index:200;} 
.togleborder{position:absolute;left:50%;font-size:28px;color:#ddd;top:3px;z-index:200;} 
.hotCityList{background:#fff;border-radius:5px;box-shadow:1px 1px 1px #333;top:22px;position:absolute;width:270px;border:1px solid #ddd; z-index:202;} 
.hotCityList p{padding:5px 0} 
.hotCityList p a{padding:0 8px;height:22px;line-height:22px;color:#333;font-size:14px;margin:3px 5px;text-align:center;display:inline-block;float:left} 
.hotCityList p a:hover{background:#f55583;color:#fff;text-decoration:none} 
.moreCity{border-top:1px solid #c6c6c6;height:30px;line-height:30px;text-align:right;} 
.moreCity a{color:#f55583;font-size:14px;margin-right:10px} 
.cityConfirm{position:absolute;cursor:pointer;width:168px;height:48px;left:137px;bottom:22px;} 
.cityConfirm a{width:168px;height:48px;display:block} 
.evet { display:none; position:absolute; top:0px; left:0px; width:100%; height:100%; z-index:198; } 
</style> 


<div class="dialog-wrap"></div> 
<div class="dialog"> 
<div class="city-box"> 
<div class="close"><a title="關閉" href="javascript:close_dialog();" rel="external nofollow" ></a></div> 
<div class="cityBox"><span>北京</span></div> 
<div class="hotCityBox"> 
<div class="togleborder">◊</div> 
<div class="togle">♦</div> 
<div class="hotCityList"> 
<p class="clearfix"> 
<a href="">北京</a> 
<a href="">上海</a> 
<a href="">天津</a> 
<a href="">杭州</a> 
<a href="">西安</a> 
<a href="">成都</a> 
<a href="">鄭州</a> 
<a href="">廈門</a> 
<a href="">青島</a> 
<a href="">深圳</a> 
<a href="">太原</a> 
<a href="">重慶</a> 
<a href="">武漢</a> 
<a href="">南京</a> 
<a href="">廣州</a> 
<a href="">沈陽</a> 
<a href="">濟南</a> 
<a href="">哈爾濱</a> 
</p> 
<div class="moreCity"><a href="">更多城市>></a></div> 
</div> 
</div> 
<div class="cityConfirm"><a title="開始團購" href=""></a></div> 
<div class="evet"></div> 
</div> 
</div> 

<script type="text/javascript" src="jquery.js"></script> 
<script type="text/javascript"> 
function dialog(){ 
var h = $('body').height(); 
$('.dialog-wrap').css({'height':h,'opacity':0.5,'display':'block'}); 
$('.dialog').show(); 
} 
function close_dialog(){ 
$('.dialog, .dialog-wrap').hide(); 
} 
$('.cityBox').click(function(){ 
$('.hotCityBox, .evet').show(); 
}); 

$('.evet, .dialog-wrap').click(function(){ 
$('.hotCityBox, .evet').hide(); 
$('.evet').hide(); 
}); 


//dialog(); 
</script> 

<p onClick="dialog()" style="cursor:pointer">點擊這里看效果</p> 
<br> 
我是文字我是文字文字我字我是文字我是文字 
</body> 
</html>

相關文章

  • jQuery事件模型默認行為執(zhí)行順序及trigger()與 triggerHandler()比較實例分析

    jQuery事件模型默認行為執(zhí)行順序及trigger()與 triggerHandler()比較實例分析

    這篇文章主要介紹了jQuery事件模型默認行為執(zhí)行順序及trigger()與 triggerHandler()比較,結合實例形式分析了jQuery事件模型默認行為執(zhí)行順序相關原理,以及trigger()與 triggerHandler()的異同點比較,需要的朋友可以參考下
    2020-04-04
  • JQuery實現點擊div以外的位置隱藏該div窗口

    JQuery實現點擊div以外的位置隱藏該div窗口

    鼠標點擊div外的地方讓div窗口隱藏消失,實現方法有很多,在本文將為大家介紹下jquery中時如何實現的,感興趣的朋友不要錯過了哈
    2013-09-09
  • 使用jQuery實現購物車

    使用jQuery實現購物車

    這篇文章主要為大家詳細介紹了使用jQuery實現購物車,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2020-10-10
  • jQuery實現tab標簽自動切換的方法

    jQuery實現tab標簽自動切換的方法

    這篇文章主要介紹了jQuery實現tab標簽自動切換的方法,實例分析了jQuery操作tab標簽的技巧,涉及addClass、siblings及removeClass鏈式操作的技巧,需要的朋友可以參考下
    2015-02-02
  • jQuery實現仿新浪微博浮動的消息提示框(可智能定位)

    jQuery實現仿新浪微博浮動的消息提示框(可智能定位)

    這篇文章主要介紹了jQuery實現仿新浪微博浮動的消息提示框,具有智能定位功能,涉及jQuery控制頁面元素浮動效果的實現技巧,需要的朋友可以參考下
    2015-10-10
  • Jquery插件之Fancybox豐富的彈出層效果附源碼下載

    Jquery插件之Fancybox豐富的彈出層效果附源碼下載

    Fancybox是一款優(yōu)秀的jquery插件,它能夠展示豐富的彈出層效果,相比facybox,fancybox顯得功能更為齊全,它除了可以加載DIV,圖片、圖片集、Ajax數據,還能加載SWF影片,iframe頁面等等
    2015-12-12
  • idTabs基于JQuery的根據URL參數選擇Tab插件

    idTabs基于JQuery的根據URL參數選擇Tab插件

    我們的項目用了SunSean的idTabs,但每個tab里的控件會觸發(fā)postback,或者轉到其他頁面再轉回來,這樣當前選中的tab必丟。印度同事不肯用AJAX,無奈今天加班給印度人寫個demo,通過回傳URL參數來選擇tab
    2012-04-04
  • JQuery遍歷元素的后代和同胞實現方法

    JQuery遍歷元素的后代和同胞實現方法

    下面小編就為大家?guī)硪黄狫Query遍歷元素的后代和同胞實現方法。小編覺得挺不錯的,現在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-09-09
  • jQuery 3.0十大新特性

    jQuery 3.0十大新特性

    在2016年6月迎來了jquery3.0最終版,jquery3.0有哪些新特征呢?很多朋友不是很清楚,下面小編給大家?guī)砹薺Query 3.0十大新特性,感興趣的朋友一起看下吧
    2016-07-07
  • jquery根據屬性和index來查找屬性值并操作

    jquery根據屬性和index來查找屬性值并操作

    這篇文章主要介紹了jquery如何根據屬性和index來查找屬性值并操作,需要的朋友可以參考下
    2014-07-07

最新評論

泸州市| 贵港市| 佛学| 石泉县| 咸丰县| 长兴县| 班戈县| 大港区| 淮安市| 南溪县| 福泉市| 民乐县| 平远县| 清苑县| 安新县| 新平| 金乡县| 西乌| 霞浦县| 芜湖市| 如皋市| 宁晋县| 永德县| 普宁市| 红原县| 青田县| 无极县| 白水县| 荣成市| 宁都县| 阿克陶县| 宝应县| 进贤县| 宜君县| 南城县| 南汇区| 庄河市| 神木县| 正镶白旗| 叶城县| 鲁甸县|