大家帮我看看为什么这些代码在firefox里面不执行

来源:百度知道 编辑:UC知道 时间:2024/05/28 14:40:42
<!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>平滑收起的DIV</title>
<style type="text/css">
body{ font-size:12px; text-align:center;}
#all{ width:500px; margin:0 auto;}
#big{ width:400px; height:252px; border:#999999 1px solid; float:left;}
.small{ width:60px; height:18px; color:#FFFFFF; border:#0066FF 1px solid; float:left; margin:0 0 10px 10px; padding:4px 0 0 0; cursor:hand; background:#0099ff;}

</style>

<script language=&

得分!
另外,建议用 jQuery, 这样的效果 onclick="$('#sslDiv').slideToggle('fast'); 就搞定了,还有淡入淡出等也是小菜一碟。

<!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>平滑收起的DIV</title>
<style type="text/css">
body{ font-size:12px; text-align:center;}
#all{ width:500px; margin:0 auto;}
#big{ width:400px; height:252px; border:#999999 1px solid; float:left;}
.small{ width:60px; height:18px; color:#FFFFFF; border:#0066FF 1px solid; float:left; margi