css背景互相覆盖,该怎么修改?

来源:百度知道 编辑:UC知道 时间:2024/09/28 13:42:29
我在一个大table中嵌套了一个小table
大table完全用css定义,属于.supt{...background-color: #373737;}
小table也是用css定义,属于.open{...background-color: #cccccc;}

但是使用的时候却没有效果
既没有显示大teble的颜色,也没有显示小table的颜色,而是直接显示的页面的白色
已经解决了。。。。
是smarty和浏览器共同=的问题。smarty和浏览器根据具体情况而不更新网页

你大概是什么地方写错了;最好能把代码发出来看下;你这个效果是可以实现的:

例:
<!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">
.supt{ width:800px; height:100px;background-color: #373737;}
.open{ width:500px; height:50px;background-color: #cccccc;}
</style>
</head>

<body>
<table ellspacing="0" class="supt">
<tr>
<td><table cellspacing="0&qu