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

首頁 > 開發 > CSS > 正文

純CSS+Div 的標簽實現代碼

2024-07-11 08:37:56
字體:
來源:轉載
供稿:網友

CSS內容:


@charset “utf-8”;
/* CSS Document */
/*
author:JiYun_Lai
date:2011/01/11
desc:純CSS+Div 的標簽
*/
/*舌簽鼠標樣式*/
.tongue a:visited, a:active, a:link
{
color:#666666;
text-decoration: none;
}
.tongue a:hover
{color:#FF3399;
text-decoration:blink;
}
/*主容器樣式*/
/*200*300 px*/
.tongue_main{
width:198px;
height:298px;
font-size:12px;
border-color:#FFFF00;
border-style:solid;
border-width:1px;}
/*舌簽容器樣式*/
/*200*25 px*/
.tongue{
border-bottom-color:#FFFF33;
border-bottom-style:solid;
border-bottom-width:1px;
height:24px;
background:#BCA7B0;
}
/*主舌簽樣式 默認舌簽樣式*/
/*25 * 60 px */
.tongue_M_title{
width:55px;
float:left;
height:17px;
background-color:#FFFFFF;
margin:0px 2px 0px 0px ;
padding:5px 3px 0px ;;
border-bottom-color:#FFFFFF;
border-bottom-style:solid;
border-bottom-width:1px;
font-weight:600;}
/*副舌簽樣式*/
/*25 * 60 px */
.tongue_title{
width:55px;
float:left;
height:17px;
background-color:#EFEFEF;
margin:0px 2px 0px 0px ;
padding:5px 3px 0px ;}
/*舌簽內容樣式*/
/*198 * 273 px*/
.tongue_content{
background-color:#FFFFFF;
width:180px;
height:255px;
float:left;
padding:9px 9px;
}
.tongue_clear{ clear:both;}

Html 內容:


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<link rel=”stylesheet” type=”text/css” href=”tongue.css” />
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>純CSS+Div 的標簽</title>
<script type=”text/javascript” language=”javascript”>
{
function change(id_M,id_O){
document.getElementById(‘tongue_’+id_M).className =”tongue_M_title”;
document.getElementById(‘tongue_content_’+id_M).style.display=”block”;
var id_o_List =String(id_O).split(‘,’);
for (x in id_o_List){
document.getElementById(‘tongue_content_’+id_o_List[x]).style.display=”none”;
document.getElementById(‘tongue_’+id_o_List[x]).className =”tongue_title”;
}
}
}
</script>
</head>
<body>
<div class=”tongue_main”>
<div class=”tongue”>
<a href=”#” class=”tongue_title” id=”tongue_1″ onmouseover=”javascript:change(‘1′,’2,3’);”>新聞中心</a>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 高尔夫| 沙雅县| 新田县| 锡林浩特市| 临城县| 舟曲县| 遂宁市| 鄯善县| 开江县| 抚顺县| 德阳市| 泗洪县| 兴文县| 当雄县| 虞城县| 崇义县| 抚州市| 临武县| 洛浦县| 冷水江市| 汶上县| 依兰县| 马公市| 泰安市| 南华县| 连江县| 嵊州市| 城步| 黄大仙区| 新龙县| 彭阳县| 边坝县| 宁阳县| 聂拉木县| 白河县| 赤水市| 常宁市| 沅陵县| 黄平县| 兴海县| 宁河县|