純CSS彈出層,城市切換效果
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>純CSS彈出層效果</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<style type="text/css">
.f_l {float:left;}
.f_r {float:right;}
.city {height:60px;padding-left:10px;text-align:center;}
.city_now {width:60px;padding-top:20px;color:#595756;font-size:16px;letter-spacing:3px;font-weight:bold;}
.city_box {text-align:center;}
.city_box span {vertical-align:bottom;}
.city_nav {text-align:center;height:18px;line-height:18px;color:#333;cursor:pointer;overflow:hidden;display:inline-block;}
.city_hover {color:#f25000;height:18px;line-height:18px;overflow:hidden;}
.city_link {background:#FFFFFF;border:#f25000 2px solid;width:305px;display:none;z-index:9999;}
.city_hovers {display:block;position:absolute;}
.city_links {width:60px;margin-right:1px;height:30px;line-height:30px;font-size:13px;text-align:center;background:#f6f6f6;vertical-align:top;margin-bottom:1px;display:inline-block;}
.city_show {background:#ccc;height:18px;line-height:18px;padding:5px;cursor:pointer;}
</style>
<body>
<div class="city f_l">
<div class="city_now">北京</div>
<div class="city_swich">
<span class="city_nav" id="city_nav" onclick="this.className='city_nav city_hover';document.getElementById('city_link').className='city_link city_hovers'">[切換城市]</span></div><!
-- onmouseover= /vs/onclick= -->
<div id="city_link" class="city_link">
<div class="city_show"><span class="f_red f_r" href="javascript:;" title="關閉視窗" onclick="document.getElementById('city_nav').className='city_nav';document.getElementById
('city_link').className='city_link';return !1;">[關閉]</span><span class="f_l f_red"><a href="{$EXT[wap_url]}" target="_blank">歡迎使用!</a></span></div>
<a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','0');return false;">全國</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','1');return false;">北京</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','2');return false;">上海</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','3');return false;">深圳</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','4');return false;">廣州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','5');return false;">西安</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','6');return false;">杭州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','7');return false;">長沙</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','8');return false;">重慶</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','9');return false;">寧波</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','10');return false;">成都</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','11');return false;">青島</a><a
class="city_links" href="#" onclick="M.goExpr('city_eelou_id','12');return false;">南京</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','13');return false;">昆明
</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','14');return false;">武漢</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','15');return false;">天
津</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','16');return false;">合肥</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','17');return false;">
鄭州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','18');return false;">瀋陽</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','19');return
false;">大連</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','20');return false;">福州</a><a class="city_links" href="#" onclick="M.goExpr
('city_eelou_id','21');return false;">蘇州</a><span class="city_links">
</span><span class="city_links"></span><span class="city_links"></span>
</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>
<html>
<head>
<title>純CSS彈出層效果</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<style type="text/css">
.f_l {float:left;}
.f_r {float:right;}
.city {height:60px;padding-left:10px;text-align:center;}
.city_now {width:60px;padding-top:20px;color:#595756;font-size:16px;letter-spacing:3px;font-weight:bold;}
.city_box {text-align:center;}
.city_box span {vertical-align:bottom;}
.city_nav {text-align:center;height:18px;line-height:18px;color:#333;cursor:pointer;overflow:hidden;display:inline-block;}
.city_hover {color:#f25000;height:18px;line-height:18px;overflow:hidden;}
.city_link {background:#FFFFFF;border:#f25000 2px solid;width:305px;display:none;z-index:9999;}
.city_hovers {display:block;position:absolute;}
.city_links {width:60px;margin-right:1px;height:30px;line-height:30px;font-size:13px;text-align:center;background:#f6f6f6;vertical-align:top;margin-bottom:1px;display:inline-block;}
.city_show {background:#ccc;height:18px;line-height:18px;padding:5px;cursor:pointer;}
</style>
<body>
<div class="city f_l">
<div class="city_now">北京</div>
<div class="city_swich">
<span class="city_nav" id="city_nav" onclick="this.className='city_nav city_hover';document.getElementById('city_link').className='city_link city_hovers'">[切換城市]</span></div><!
-- onmouseover= /vs/onclick= -->
<div id="city_link" class="city_link">
<div class="city_show"><span class="f_red f_r" href="javascript:;" title="關閉視窗" onclick="document.getElementById('city_nav').className='city_nav';document.getElementById
('city_link').className='city_link';return !1;">[關閉]</span><span class="f_l f_red"><a href="{$EXT[wap_url]}" target="_blank">歡迎使用!</a></span></div>
<a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','0');return false;">全國</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','1');return false;">北京</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','2');return false;">上海</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','3');return false;">深圳</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','4');return false;">廣州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','5');return false;">西安</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','6');return false;">杭州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','7');return false;">長沙</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','8');return false;">重慶</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','9');return false;">寧波</a><a class="city_links"
href="#" onclick="M.goExpr('city_eelou_id','10');return false;">成都</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','11');return false;">青島</a><a
class="city_links" href="#" onclick="M.goExpr('city_eelou_id','12');return false;">南京</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','13');return false;">昆明
</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','14');return false;">武漢</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','15');return false;">天
津</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','16');return false;">合肥</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','17');return false;">
鄭州</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','18');return false;">瀋陽</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','19');return
false;">大連</a><a class="city_links" href="#" onclick="M.goExpr('city_eelou_id','20');return false;">福州</a><a class="city_links" href="#" onclick="M.goExpr
('city_eelou_id','21');return false;">蘇州</a><span class="city_links">
</span><span class="city_links"></span><span class="city_links"></span>
</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>
相關文章
- 用純css實現Tab切換CSS
- 純CSS實現Tab欄的切換CSS
- Label和input實現純CSS切換CSS
- 兩種純CSS方式實現hover圖片pop-out彈出效果CSS
- 用CSS實現Tab頁切換效果CSS
- 純CSS的導航欄Tab切換例項CSS
- CSS滑鼠懸浮圖片模糊切換效果CSS
- JavaScript點選按鈕彈出層效果JavaScript
- 純CSS 毛玻璃效果CSS
- 純css模擬下雪效果CSS
- CSS實現頁面切換時的滑動效果CSS
- 利用transform實現一個純CSS彈出選單ORMCSS
- 純 CSS 實現斜紋效果CSS
- 純CSS實現液晶字型效果CSS
- 純css之隔行換色CSS
- 用純 CSS 實現鏤空效果CSS
- 純 CSS 實現縷空遮罩層CSS遮罩
- vue路由切換滑動效果Vue路由
- 用純css實現打星星效果(三)CSS
- jQuery帶炫酷輪播圖效果的Lightbox彈出層外掛jQuery
- 小程式標籤頁切換效果
- 使用純 CSS 實現滾動陰影效果CSS
- 用CSS實現tab切換CSS
- CSS3多層邊框效果CSSS3
- CSS3 - vue中純css實現柱狀圖表效果CSSS3Vue
- 《前端實戰總結》之使用純css實現網站換膚和焦點圖切換動畫前端CSS網站動畫
- 純CSS實現四種方式文字反差色效果CSS
- jQuery 圖片垂直切換效果詳解jQuery
- 【動畫消消樂|CSS】083.純CSS實現卡通齒輪效果動畫CSS
- 彈出層layer 完整步驟以及在編寫彈出層時遇到的錯誤
- 不可思議的純 CSS 滾動進度條效果CSS
- 不可思議的純 CSS 實現滑鼠跟隨效果CSS
- 純CSS3屬性animation實現的打字效果CSSS3
- 使用純 CSS 實現超酷炫的粘性氣泡效果CSS
- JavaScript 方向鍵切換表格tr行高亮效果JavaScript
- 點選Enter鍵表切換焦點效果
- 雙輪播加切換動畫效果元件動畫元件
- CSS3 方塊不間斷彈跳效果CSSS3
- 純手畫WinForm的Alert提示彈出框ORM