书签 分享 收藏 举报 版权申诉 / 12

类型bHTMLb基本标记.docx

  • 文档编号:2850951
  • 上传时间:2023-05-04
  • 格式:DOCX
  • 页数:12
  • 大小:20.46KB

AgenerictagusedtoformatlargeblocksofHTML,alsousedforstylesheets

一个用来排版大块HTML段落的标记,也用于样式表

>

Agenerictagusedtoformatpartoftextinsideaparagraph,alsousedforstylesheets

一个用来排版段内部分文字的标记,也用于样式表

 

 

Graphicalelements

图形元素

Addsanimage

添加一个图像

#

>

Alignsanimage:

left,right,center;bottom,top,middle

排列对齐一个图像:

左中右或上中下

#

>

Setssizeofborderaroundanimage

设置围绕一个图像的边框的大小

#


Insertsahorizontalrule

加入一条水平线

#

>

Setssize(height)ofrule

设置水平线的大小(高度)

#

>

Setswidthofrule,inpercentageorabsolutevalue

设置水平线的宽度(百分比或绝对像素点)

#

Createsarulewithoutashadow

创建一个没有阴影的水平线

 

 

Tables

表格

Createsatable

创建一个表格

Setsoffeachrowinatable

开始表格中的每一行

Setsoffeachcellinarow

开始一行中的每一个格子

Setsoffthetableheader(anormalcellwithbold,centeredtext)

设置表格头:

一个通常使用黑体居中文字的格子

Tableattributes

表格属性

Setswidthofborderaroundtablecells

设置围绕表格的边框的宽度

Setsamountofspacebetweentablecells

设置表格格子之间空间的大小

Setsamountofspacebetweenacell'sborderanditscontents

设置表格格子边框与其内部内容之间空间的大小

Setswidthoftable-inpixelsorasapercentageofdocumentwidth

设置表格的宽度-用绝对像素值或文档总宽度的百分比

>or

>

Setsalignmentforcell(s)(left,center,orright)

设置表格格子的水平对齐(左中右)

>or

>

Setsverticalalignmentforcell(s)(top,middle,orbottom)

设置表格格子的垂直对齐(上中下)

Setsnumberofcolumnsacellshouldspan(default=1)

设置一个表格格子应跨占的列数(缺省为1)

Setsnumberofrowsacellshouldspan(default=1)

设置一个表格格子应跨占的行数(缺省为1)

#

Preventsthelineswithinacellfrombeingbrokentofit

禁止表格格子内的内容自动断行回卷

 

 

#Frames

窗框

Precedesthetaginaframesdocument;canalsobenestedinotherframesets

放在一个窗框文档的标记之前,也可以嵌在其他窗框文档中

Definestherowswithinaframeset,usingnumberinpixels,orpercentageofwidth

定义一个窗框内的行数,可以使用绝对像素值或高度的百分比

Definesthecolumnswithinaframeset,usingnumberinpixels,orpercentageofwidth

定义一个窗框内的列数,可以使用绝对像素值或宽度的百分比

Definesasingleframe-orregion-withinaframeset

定义一个窗框内的单一窗或窗区域

Defineswhatwillappearonbrowsersthatdon'tsupportframes

定义在不支持窗框的浏览器中显示什么提示

 

 

#Framesattributes

窗框属性

SpecifieswhichHTMLdocumentshouldbedisplayed

规定窗框内显示什么HTML文档

Namestheframe,orregion,soitmaybetargetedbyotherframes

命名窗框或区域以便别的窗框可以指向它

Definestheleftandrightmarginsfortheframe;mustbeequaltoorgreaterthan1

定义窗框左右边缘的空白大小,必须大于等于1

Definesthetopandbottommarginsfortheframe;mustbeequaltoorgreaterthan1

定义窗框上下边缘的空白大小,必须大于等于1

Setswhethertheframehasascrollbar;valuemayequal"yes,""no,"or"auto."Thedefault,asinordinarydocuments,isauto.

设置窗框是否有滚动栏,其值可以是"yes","no","auto",缺省时一般为"auto"

Preventstheuserfromresizingaframe

禁止用户调整一个窗框的大小

 

 

Forms

表单

Forfunctionalforms,you'llhavetorunaCGIorJavaScriptscript.TheHTMLjustcreatestheappearanceofaform.

对于功能性的表单,一般需要运行一个CGI或JavaScript小程序,HTML仅仅是产生表单的表面样子。

Createsaform

创建一个表单

Createsapulldownmenu

创建一个下拉菜单

Setsoffeachmenuitem

设置每个菜单项的内容

Createsatextboxarea.Columnssetthewidth;rowssettheheight.

创建一个文本框区域,列的数目设置宽度,行的数目设置高度

Createsacheckbox.Textfollowstag.

创建一个复选框,文字在标记后面

Createsaradiobutton.Textfollowstag

创建一个单选框,文字在标记后面

Createsaone-linetextarea.Sizesetslength,incharacters.

创建一个单行文本输入区域,size设置以字符计的宽度

Createsacommandbutton

创建一个命令按钮,上面显示的是命令名

#

CreatesaSubmitbutton

创建一个submit(提交)按钮

#

CreatesaSubmitbuttonusinganimage

创建一个使用图象的submit(提交)按钮

#

CreatesaResetbutton

创建一个reset(重置)按钮

#

>

Createsascrollingmenu.Sizesetsthenumberofmenuitemsvisiblebeforeyouneedtoscroll.

创建一个滚动菜单,size设置在需要滚动前可以看到的表单项数目

CSS基本属性

属性名称

属性含义

属性值

字体属性(font)

font-family

使用什么字体

所有的字体

font-style

字体是否斜体

normal、italic、oblique

#

font-variant

是否用小体大写

normal、small-caps

font-weight

字体的粗细

normal、bold、bolder、lighter等

font-size

字体的大小

absolute-size、relative-size、length、percentage等

[即:

绝对单位、相对单位、长度、百分比]

颜色和背景属性

color

定义前景色

颜色

background-color

定义背景色

颜色

background-image

定义背景图案

url(image_file)

background-repeat

重复方式

repeat、repeat-x、repeat-y、no-repeat

#

background-attachment

设置滚动

scroll、fixed

#

background-position

初始位置

percentage、length、top、left、right、bottom等

文本属性

word-spacing

单词之间的间距

normal

letter-spacing

字母之间的间距

同上

text-decoration

文字的装饰样式

none|underline|overline|line-through|blink

vertical-align

垂直方向的位置

baseline|sub|super|top|text-top|middle|bottom|text-bottom

text-transform

文本转换

capitalize|uppercase|lowercase|none

text-align

对齐方式

left|right|center|justify

text-indent

首行的缩进方式

|

line-height

文本的行高

normal|||

#

边距属性

margin-top

顶端边距

length|percentage|auto

margin-right

右侧边距

同上

margin-bottom

底端边距

同上

margin-left

左侧边距

同上

#

填充距属性

padding-top

顶端填充距

length|percentage

padding-right

右侧填充距

同上

padding-bottom

底端填充距

同上

padding-left

左侧填充距

同上

#

边框属性

border-top-width

顶端边框宽度

thin|medium|thick|length

border-right-width

右侧边框宽度

同上

border-bottom-width

底端边框宽度

同上

border-left-width

左侧边框宽度

同上

border-width

一次定义宽度

同上

border-color

设置边框颜色

color

border-style

设置边框样式

none|dotted|dash|solid等

border-top

一次定义顶端

border-top-width|color等

border-right

一次定义右侧

同上

border-bottom

一次定义底端

同上

border-left

一次定义左侧

同上

width

定义宽度属性

length|percentage|auto

height

定义高度属性

length|auto

float

文字环绕

left|right|none

clear

哪一边环绕

left|right|none|both

#

分级属性

display

定义是否显示

block、inline、list-item、none

white-space

怎样处理空白

normal、pre、nowrap

list-style-type

加项目编号

disc、circle、square等

list-style-image

加图案

|none

list-style-position

第二行起始位置

inside、outside

list-style

一次定义列表

||

#

鼠标(cursor)属性

自动

auto

定位“十”字

crosshair

默认指针

default

手形

hand

移动

move

箭头朝右方

e-resize

箭头朝右上方

ne-resize

箭头朝左上方

nw-resize

箭头朝上方

n-resize

箭头朝右下方

se-resize

箭头朝左下方

sw-resize

箭头朝下方

s-resize

箭头朝左方

w-resize

文本“i”形

text

等待

wait

帮助

help

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
bHTMLb 基本 标记
提示  冰点文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:bHTMLb基本标记.docx
链接地址:https://www.bingdoc.com/p-2850951.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2


收起
展开