当前位置:Gxlcms > html代码 > HTML编辑基础

HTML编辑基础

时间:2021-07-01 10:21:17 帮助过:4人阅读

https://www.gxlcms.com/https://www.gxlcms.com/HTML 基础语言

https://www.gxlcms.com/打开DREAMWEAVERhttps://www.gxlcms.com/,新建https://www.gxlcms.com/HTML。。https://www.gxlcms.com/

bodyhttps://www.gxlcms.com/的属性:

bgcolor https://www.gxlcms.com/页面背景色

background https://www.gxlcms.com/背景壁纸、图片

text https://www.gxlcms.com/文字颜色

topmargin https://www.gxlcms.com/上边距

leftmargin https://www.gxlcms.com/左边距

rightmargin https://www.gxlcms.com/右边距

bottommargin https://www.gxlcms.com/下边距

https://www.gxlcms.com/格式控制标签:

https://www.gxlcms.com/分别控制字体的颜色、字体和大小。

https://www.gxlcms.com/字体加粗

https://www.gxlcms.com/字体加粗

https://www.gxlcms.com/倾斜

https://www.gxlcms.com/倾斜

https://www.gxlcms.com/下划线

https://www.gxlcms.com/居中


https://www.gxlcms.com/https://www.gxlcms.com/
https://www.gxlcms.com/相当于回车

https://www.gxlcms.com/表示空格,Ctrl+shift+space

https://www.gxlcms.com/

https://www.gxlcms.com/内容容器标签:

https://www.gxlcms.com/标题,会自动换行。HTMLhttps://www.gxlcms.com/标题是

. . . https://www.gxlcms.com/通过

https://www.gxlcms.com/https://www.gxlcms.com/
https://www.gxlcms.com/等标签来定义的。

https://www.gxlcms.com/段落标签(段落之间空行)

https://www.gxlcms.com/层标签(默认占用一行)

https://www.gxlcms.com/层标签(默认用掉多大空间占用多大空间)

    https://www.gxlcms.com/有序列表,序号为1,2,3....https://www.gxlcms.com/,引号中可以更改序号的形式

  1. https://www.gxlcms.com/内容https://www.gxlcms.com/
  2. https://www.gxlcms.com/内容https://www.gxlcms.com/
https://www.gxlcms.com/上面的olhttps://www.gxlcms.com/改为https://www.gxlcms.com/ulhttps://www.gxlcms.com/则变为无序号列表

https://www.gxlcms.com/

"../" https://www.gxlcms.com/表示上级目录

"./" https://www.gxlcms.com/表示当前目录

https://www.gxlcms.com/相对路径:从当前页面开始查找。

https://www.gxlcms.com/绝对路径:从网站的根开始查找。"/"https://www.gxlcms.com/,代表网站的根。

https://www.gxlcms.com/超链接标签:

超链接地址https://www.gxlcms.com/" target="_blank">https://www.gxlcms.com/超链接文字https://www.gxlcms.com/ --https://www.gxlcms.com/在新窗口打开

https://www.gxlcms.com/还可以在当前页找到目录点击目录上的超链接,自动跳转到当页的某一个地方。

https://www.gxlcms.com/

https://www.gxlcms.com/图片标签:

图片地址https://www.gxlcms.com/" alt="https://www.gxlcms.com/文字https://www.gxlcms.com/" width=“” height=“” title=“https://www.gxlcms.com/描述文字https://www.gxlcms.com/” />

https://www.gxlcms.com/高度跟宽度设置一个即可保持原有比例。

althttps://www.gxlcms.com/在图片无法加载时,显示文字,还可以帮助搜索引擎搜索。

titlehttps://www.gxlcms.com/可以添加图片描述,鼠标放在图片上时可以显示描述。

https://www.gxlcms.com/表格:

https://www.gxlcms.com/表格

width:https://www.gxlcms.com/宽度。可以用像素或百分比表示。 常用https://www.gxlcms.com/960https://www.gxlcms.com/像素。

borderhttps://www.gxlcms.com/:边框,常用值为https://www.gxlcms.com/0https://www.gxlcms.com/

cellpaddinghttps://www.gxlcms.com/:内容跟边框的距离,常用值为https://www.gxlcms.com/0https://www.gxlcms.com/

cellspacinghttps://www.gxlcms.com/:单元格与单元格之间的间距,常用值为https://www.gxlcms.com/0https://www.gxlcms.com/

alginhttps://www.gxlcms.com/:对齐方式。

bgcolorhttps://www.gxlcms.com/:背景色。

backgroundhttps://www.gxlcms.com/:背景图片。

https://www.gxlcms.com/

align:https://www.gxlcms.com/一行内容的水平对齐方式。

valign:https://www.gxlcms.com/一行内容的垂直对齐方式。

heighthttps://www.gxlcms.com/:行高。

bgcolorhttps://www.gxlcms.com/:背景色。

backgroundhttps://www.gxlcms.com/:背景图片。

https://www.gxlcms.com/单元格

https://www.gxlcms.com/表头,单元格的内容自动居中、加粗

align:https://www.gxlcms.com/单元格内容的对齐方式。

valign:https://www.gxlcms.com/单元格的内容的垂直对齐方式。

widthhttps://www.gxlcms.com/:单元格宽度。

heighthttps://www.gxlcms.com/:单元格高度。

bgcolorhttps://www.gxlcms.com/:背景色。

backgroundhttps://www.gxlcms.com/:背景图片。

https://www.gxlcms.com/内容必须放在单元格里,单元格必须放在行里,行必须放在表格里。

https://www.gxlcms.com/设置单元格行高、列高时,会同时影响对应的行或列。

https://www.gxlcms.com/单元格合并:(建议尽量用表格嵌套)

colspan=“n” https://www.gxlcms.com/合并同一行的单元格(后面写代码要减去相对应的列)

rowspan=“n” https://www.gxlcms.com/合并同一列单元格(从第二行开始减去相对应的列)

人气教程排行