唉,这个世界有太多的东西等着你去发现,今天看dhtmlGrid的源码时才发现这个,也许是我火星了!
[code]
<html>
<head>
<style>
.c1{background-color:red}
.c2{background-color:yellow}
</style>
</head>
<body>
<div class="c1 c2">
testCSS
<div>
</body>
</html>
[/code]
div是黄色的,
如果代码是这样的
[code]
<html>
<head>
<style>
.c1{background-color:red}
.c3{background-color:yellow}
</style>
</head>
<body>
<div class="c1 c2">
testCSS
<div>
</body>
</html>
[/code]
那么div就是红色的
[code]
<html>
<head>
<style>
.c1{background-color:red}
.c2{background-color:yellow}
</style>
</head>
<body>
<div class="c1 c2">
testCSS
<div>
</body>
</html>
[/code]
div是黄色的,
如果代码是这样的
[code]
<html>
<head>
<style>
.c1{background-color:red}
.c3{background-color:yellow}
</style>
</head>
<body>
<div class="c1 c2">
testCSS
<div>
</body>
</html>
[/code]
那么div就是红色的