龙岗网站制作公司,成都市网站建设,品牌营销理论,长沙制作网页联系方式1、指定CSS表格边框#xff0c;使用border属性。
2、表格双边框是因为th/td有各自独立的边框。
3、boder-collapse设置表格边框是否被折叠成一个单一的边框。
4、width和height属性定义表格的宽度和高度。
5、text-align属性设置水平对齐方式。
6、vertic-align属性设置垂…1、指定CSS表格边框使用border属性。
2、表格双边框是因为th/td有各自独立的边框。
3、boder-collapse设置表格边框是否被折叠成一个单一的边框。
4、width和height属性定义表格的宽度和高度。
5、text-align属性设置水平对齐方式。
6、vertic-align属性设置垂直对齐方式。
7、padding填充属性用来控制边框与内容之间的距离。
8、background-color、color分别设置背景颜色与文本颜色。
9、用caption属性定义表格名称。
!DOCTYPE html
htmlheadmeta charsetuft-8titleCSS修饰表格/titlestyletable,th,td{border: 1px solid blue;border-collapse: collapse;}th{height: 50px;background-color: bisque;}td{text-align: center;vertical-align: bottom;padding: 15px;color: green;}caption {caption-side: bottom;color:red}/style/headbodytabletrth名称/thth简介/th/trtrtdphp/tdtd世界上最好的编程语言/td/trtrtdjava/tdtd也很强/td/trcaption表1世界著名编程语言比较/caption/table/body
/html
运行结果