1.div本身相当于一个容器,可以在当中内嵌table、文本和其它HTML代码,也可以将div内嵌至table中;
2.有需要的地方可以直接定义css,通过style引入即可;
例:
<html> <head> <meta http-equiv="Content-Type" content="text/css; charset=utf-8" /> <title>div+css</title> <h4> <div style="width: 300px; height: 100px; color: blue">div中直接写CSS样式</div> </h4> </head> <body> </body> </html>
??
3.对外部CSS文件的引用:
原文:http://songjie-xuan.iteye.com/blog/2153214