这样会不会破坏主题?

由 葬月 于 周三, 2007-02-28 05:48 提交。

<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
a:link,a:visited {
color: #000000;
text-decoration: none;
}
* {
font-size: 12px;
}
a:hover {
background-color: #CCCCCC;
}
.link {
border: 1px solid #000000;
height: 30px;
width: 200px;
}
div:hover {
background-color: #CCCCCC;
color: #CCCCCC;
}
-->
</style>
</head>

<body>
<div class="link" onmouseover="dochange()" onmouseout="doRes()">
<a href="#">你好啊</a></div>
</body>
</html>
<script>
function dochange(){
event.srcElement.style.background = "#ff0000";
}
function doRes(){
event.srcElement.style.background = "";
}
</script>

怎么不用DIV

怎么不用DIV CSS。好像现在这个是主流。
最新最全的QQ表情|QQ搞笑表情|QQ表情下载,免费哦。

为何有此一问??

为何有此一问??
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

drupal数据库不是utf8编码的么...
这样会出现空白页面或者乱码吧...