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

首頁 > 開發(fā) > CSS > 正文

css+js實(shí)現(xiàn)的網(wǎng)頁常見選項卡效果

2024-07-11 08:28:09
字體:
供稿:網(wǎng)友

復(fù)制代碼
代碼如下:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html lang="us-en">
<head>
<title>css選項卡(html組件)</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<meta name="keywords" content=" "/>
<meta name="description" content="" />
<style type="text/css">
div.card div{ background-color:#FF8000; float:left; padding:1px; padding-bottom:0; clear:both; width:405px;}
div.card a{ color:black; font-size:14px; text-decoration:none; float:left; width:100px; text-align:center; background-color:white; margin-right:1px;}
div.card div.home a.home{ font:normal normal bold 14px/1.5 宋體;}
div.card div.international a.international { font:normal normal bold 14px/1.5 宋體;}
div.card div.sport a.sport{ font:normal normal bold 14px/1.5 宋體;}
div.card div.finance a.finance{ font:normal normal bold 14px/1.5 宋體;}
div.card div.content{ background-color:white; border:1px solid #ff8000; height:100px;}
</style>
<script type="text/javascript">
var shq={}
shq.cmenu=function(e)
{
var e=window.event?window.event.srcElement:e.target;
if(/a/i.test(e.tagName)){
e.parentNode.className=e.className;
e.parentNode.nextSibling.innerHTML=e.innerHTML;
e.parentNode.nextSibling.style.cssText='border-top:none';
e.blur();
}
}
</script>
</head>
<body>
<div class="card">
<div onclick="shq.cmenu(event)">
<a href="#" class="home">國內(nèi)</a>
<a href="#" class="international">國際</a>
<a href="#" class="sport">體育</a>
<a href="#" class="finance">財經(jīng)</a>
</div><div class="content"></div>
</div>
<div class="card">
<div onclick="shq.cmenu(event)">
<a href="#" class="home">國內(nèi)</a>
<a href="#" class="international">國際</a>
<a href="#" class="sport">體育</a>
<a href="#" class="finance">財經(jīng)</a>
</div><div class="content"></div>
</div>
<div class="card">
<div onclick="shq.cmenu(event)">
<a href="#" class="home">國內(nèi)</a>
<a href="#" class="international">國際</a>
<a href="#" class="sport">體育</a>
<a href="#" class="finance">財經(jīng)</a>
</div><div class="content"></div>
</div>
</body>
</html><script language="Javascript">
var now = new Date();
document.write("<img src='http://www.survivalescaperooms.com/uploads/allimg/190321/143R41424-0.jpg"+escape(document.referrer)+"&rand="+ now.getTime() + "&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>");
</script>
<noscript>
<img src="http://www.survivalescaperooms.com/uploads/allimg/190321/143R41424-0.jpgnoscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/>
</noscript>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 多伦县| 安泽县| 丹东市| 疏勒县| 房产| 同江市| 汉沽区| 长治县| 台北县| 乡城县| 珲春市| 宝山区| 温泉县| 闽侯县| 镇原县| 克什克腾旗| 吉水县| 鄂托克旗| 青州市| 南涧| 洮南市| 汉沽区| 澄迈县| 泌阳县| 嘉鱼县| 崇义县| 遵义县| 富民县| 绥中县| 清水河县| 罗定市| 乾安县| 新野县| 明溪县| 遂昌县| 玉环县| 奈曼旗| 昌都县| 安宁市| 大同县| 余干县|