.clear
{
	clear:both;
}

html
{
	font-size:2.8vw;
}


#=== 设置div ========

div#total
{
	width=100%;
	height=100%;
	background-color:LightGray;
	white-space:nowrap;
}


div#below-theme
{	
	width:100%;
	height:7%;
	background-color:none;
	padding-top:0vw;
	white-space:nowrap;
}

div#sidebar
{
	width:15%;
	#height:100%;	#并列div只定义一个;
	float:left;
	position:relative;
	overflow:hidden;
	background-color:none;
	border:none;
}

div#write
{
	width:82%;
	height:auto;
	float:left;
	position:relative;
	overflow-x:sroll;
	background-color:none;
	border:none;
	line-height:3vw;
	font-size:2.4vw;
}

div#left-1
{
	width:70%;
	height:100%;
	float:left;
	line-height:32px;

}

div#right-1
{
	width:27%;
	width:25%;
	width:27%;
	height:100%;
	float:right;
}

div#theme
{
	width:100%;
	height:auto;
	text-align:center;
	font-weight:bold;
	font-size:5vw;
	background:linear-gradient(white,rgba(0,0,255,0.7));
}





#=== 设置class ========
.subtitle
{
	font-family:"Times", "KaiTi_GB2312";
}


.mainmenu
{	
	font-size:1.6vw;
	font-weight:bold;
	line-height:1.8vw;
	font-family:"Times", "KaiTi_GB2312";
}
.mainmenu a{color:black;font-weight:normal;font-size:2.2vw;line-height:2.4vw;}
.mainmenu	a:hover{background-color:pink;}
# 好像特殊设定a后，如果不设定字体大小，就用默认，而不是mainmenu的。不特殊设定用div里的设定。

.sidemenu
{	
	font-size:3vw;
	line-height:4vw;

	font-family:"Times", "KaiTi_GB2312";
	# text-overflow:ellipsis;
	# display:block;
}
.sidemenu a{font-weight:bold;font-size:2.4vw;line-height:4vw;}
.sidemenu	a:hover{background-color:yellow;}

.sidemenu p{font-weight:bold;font-size:2.2vw;line-height:3.0vw;}
.sidemenu li p
{
	display:none;
	list-style:none;
}

.sidemenu ul
{
	display:none;
	list-style:none;
	margin-top:1vw;
	margin-bottom:1vw;
	#margin-left:0vw;
}


.expandmenu
{
	font-size:3vw;
	line-height:3.5vw;
	padding-left:1vw;
}
.expandmenu a{font-weight:bold;font-size:2.6vw;line-height:4.8vw;}
.expandmenu	a:hover{background-color:yellow;}



.word
{
	font-family:Times,KaiTi_GB2312;
}
.word li {font-size:2.8vw;line-height:3.6vw;}
.word dl {font-size:2.8vw;line-height:3.6vw;}
.word dt {font-size:2.8vw;line-height:3.6vw;}
.word dd {font-size:2.8vw;line-height:3.6vw;margin-left:4vw}
.word tr {font-size:2.8vw;line-height:3.6vw;}
.word td {font-size:2.8vw;line-height:3.6vw;}
.word p
{
	text-indent:2em;
}

.codebox
{	
	font-family:Times,KaiTi_GB2312;
}
.codebox dl {font-size:2.8vw;line-height:3.6vw;bold;}
.codebox dt {font-size:2.8vw;line-height:3.6vw;bold;}
.codebox tr {font-size:2.8vw;line-height:3.6vw;}
.codebox td {font-size:2.4vw;line-height:3.2vw;}
.codebox table {
	border:1px solid #0099CC; 
	width: 95%; 
	margin:1vw;
	padding:1vw;
	padding-bottom:0vw;
	# table-layout: fixed;
	# word-break: break-all;
}
.codebox pre
{
	white-space:pre-wrap;
	white-space:-moz-pre-wrap;
	white-space:-pre-wrap;
	white-space:-o-pre-wrap;
	word-wrap:break-word;
}



# === 设置默认 =====

body
{
 	background-color:honeydew;
	font-family:Times,KaiTi_GB2312;
}

a
{
	font-weight:bold;
	text-decoration:none;
}
a:hover{background-color:lightblue;}


li
{
	list-style:none;
	padding:0;
	margin:0 auto;
}

ol li
{
	list-style-type:decimal;
  list-style-position:inside;
}

ul
{
	list-style:none;
	padding:0;
	margin:0 auto;
}


H1
{
  font-size:4vw;
}
H2
{
  font-size:3.6vw;
}

.eng
{
	font-family:Times;
}

.chs
{
	font-family:KaiTi_GB2312;
}


img
{
	height:auto;
}


sub,sup 
{
  font-size: 75%;
  line-height: 0;
  position: relative;
	vertical-align: baseline;
}
sub {bottom: -0.25em;} 
sup {top: -0.5em;}
