1、设置页面文本字体(js+css)
Code
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {margin-bottom: 2px;}
body,td,th {font-family:宋体;font-size: 12px;line-height:18px}
a:link {color: #CC3366;}
a:visited {color: #CCCCCC;}
a:hover {color: #CC3300; font-size:16px}
a:active {color: #CC0000;}
.input{ width:120px }
-->
</style>
</head>
<body style=" background-color:#CCC;">
<p onmouseover="this.style.fontSize=14;this.style.background='#CCCCCC';this.style.fontWeight='bold';"
onmouseout="this.style.fontSize=12;this.style.background='#FFF';this.style.fontWeight='normal';">网站首页</p>
</body>
</html>
![ContractedBlock.gif](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {margin-bottom: 2px;}
body,td,th {font-family:宋体;font-size: 12px;line-height:18px}
a:link {color: #CC3366;}
a:visited {color: #CCCCCC;}
a:hover {color: #CC3300; font-size:16px}
a:active {color: #CC0000;}
.input{ width:120px }
-->
</style>
</head>
<body style=" background-color:#CCC;">
<p onmouseover="this.style.fontSize=14;this.style.background='#CCCCCC';this.style.fontWeight='bold';"
onmouseout="this.style.fontSize=12;this.style.background='#FFF';this.style.fontWeight='normal';">网站首页</p>
</body>
</html>