html基础查漏补缺

资料参考来源:https://www.runoob.com/html/html-tutorial.html菜鸟教程

1.表格

html基础查漏补缺_第1张图片

单元格间距 在table属性 cellspacing

单元格间距="0":

html基础查漏补缺_第2张图片
单元格跨行跨列问题
跨列 th的colspan属性
跨行 th的rowspan属性
html基础查漏补缺_第3张图片

2.列表

无序 ul li
有序 ol li
自定义 dl dt dd
html基础查漏补缺_第4张图片
html基础查漏补缺_第5张图片

表单

html基础查漏补缺_第6张图片
设置相同的name,则不能同时选中
html基础查漏补缺_第7张图片
都可以设置一个checked属性 默认选中


1.input标签

Image
定义图像形式的提交按钮。
必须把 src 属性 和 alt 属性 与 结合使用。


2.文本格式

文本的对齐方式
文本排列属性是用来设置文本的水平对齐方式。

文本可居中或对齐到左或右,两端对齐.

当text-align设置为"justify",每一行被展开为宽度相等,左,右外边距是对齐(如杂志和报纸)。

文本修饰
text-decoration 属性用来设置或删除文本的装饰。
从设计的角度看 text-decoration属性主要是用来删除链接的下划线:
实例
a {text-decoration:none;} 无
html基础查漏补缺_第8张图片

你可能感兴趣的:(html,html基础)