FrontPage 2002 支持的 HTML 属性

   

Microsoft FrontPage Page 对象模型中的属性基于 Microsoft Internet Explorer 4.0 中的属性。有关特定属性的详细信息,请单击下面表格中的链接。

注意  有些属性有多个相关联的主题。有关各个属性的详细信息,请参考 Microsoft Developer Network

注意  有关 IFPStyleState 对象及其属性的信息,请参阅 FrontPage 编程项目。此超链接将转到站点。您可以随时切换回帮助。

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
accessKey

action

activeElement

align(文本)

align(标题)

align(表格)

align(表格)

aLink

alinkColor

all

alt

altHtml

altKey

anchors

appCodeName

appName

applets

appVersion

areas

  返回顶端
background(属性)

background(图片)

background(表格图片)

backgroundAttachment

backgroundColor

backgroundImage

backgroundPosition

backgroundPositionX

backgroundPositionY

backgroundRepeat

balance

BaseHref

behavior

bgColor(元素)

bgColor(网页)

bgProperties

body

border

border(样式)

border(框架)

border(宽度)

borderBottom

borderBottomColor

borderBottomStyle

borderBottomWidth

borderColor(元素)

borderColor(borderWidth 和 borderStyle)

borderColorDark

borderColorLight

borderLeft

borderLeftColor

borderLeftStyle

borderRight

borderRightColor

borderRightStyle

borderRightWidth

borderStyle

borderTop

borderTopColor

borderTopStyle

borderTopWidth

borderWidth

bottomMargin

button

  返回顶端
cancelBubble

caption

cellIndex

cellPadding

cells

cellSpacing

charset

children

className

clear

clientHeight

clientInformation

clientLeft

clientTop

clientWidth

clientX

clientY

clip

closed

code

codeBase(应用程序的基本 URL)

codeBas(对象实现的位置)

codeType

color(字体或水平标尺)

color(文本)

cols(文本区宽度)

cols(表格列)

cols(框架)

colSpan

compact

complete

content

cookie

coords

cssText

ctrlKey

currentStyleState

cursor

  返回顶端
dataFld

dataFormatAs

dataPageSize

dataSrc

defaultCharset

defaultChecked

defaultSelected

defaultStatus

defer

dialogArguments

dialogHeight

dialogLeft

dialogTop

dialogWidth

direction

disabled(控件)

disabled(样式表)

display

Document

DocumentHTML

domain

dynsrc

  返回顶端
elements

embeds

encoding

event

external

  返回顶端
face

fgColor

fileCreatedDate

fileModifiedDate

fileSize

fileUpdatedDate

font

fontFamily

fontSize

fontsrc

fontStyle

fontVariant

fontWeight

form

forms

frameBorder

frames

frameSpacing

fromElement

  返回顶端
hash

hasSharedBorders

height

hidden

history

host

hostname

href(样式表)

href(目标或锁定位置)

href(相对链接的基本 URL)

href(位置)

hspace

htmlFor(元素)

htmlFor(控件)

htmlText

htmlViewText

httpEquiv

  返回顶端
id

ignoreSharedBorders

images

imports

indeterminate

index

innerHTML

innerText

isMap

isTextEdit

keyCode

  返回顶端
lang

language

lastModified

left

leftMargin

length

letterSpacing

lineHeight

link

linkColor

links

listStyle

listStyleImage

listStylePosition

listStyleType

listStyleType

location

loop

lowsrc

  返回顶端
margin

marginBottom

marginHeight

marginLeft

marginRight

marginTop

marginWidth

maxLength

media

method

Methods

mseMode

multiple

name(窗口或框架)

name(控件、书签或应用程序)

nameProp

navigator

noHref

noResize

noShade

noWrap

  返回顶端
offsetHeight

offsetLeft

offsetParent

offsetTop

offsetWidth

offsetX

offsetY

onbeforeunload

onbeforeunload

onbeforeunload

onblur(窗口)

onchange(文件输入)

onchange(文本区)

onchange(所选内容)

onchange(按钮)

onchange(文本输入)

onclick (Document2)

onclick (IHTMLElement)

ondblclick (Document2)

ondblclick (IHTMLElement)

ondragstart (Document2)

ondragstart (IHTMLElement)

onfocus(窗口)

onkeydown (Document2)

onkeydown (IHTMLElement)

onkeypress (Document2)

onkeypress (IHTMLElement)

onkeyup (Document2)

onkeyup (IHTMLElement)

onload (Image)

onload(输入图像)

onmousedown (Document2)

onmousedown (IHTMLElement)

onmousemove (Document2)

onmousemove (IHTMLElement)

onmouseout (Document2)

onmouseout (IHTMLElement)

onmouseover (Document2)

onmouseover (IHTMLElement)

onmouseup (Document2)

onmouseup (IHTMLElement)

onreadystatechange(表格)

onreadystatechange(链接)

onreadystatechange(对象)

onreadystatechange(文档)

onreadystatechange(样式)

onresize

onscroll(窗口)

onscroll(文本容器)

onselect(输入文件)

onselect(文本区)

onselect(输入文本)

onselect(正文)

onselectstart (Document2)

onselectstart (IHTMLElement)

onunload(正文)

options

outerHTML

overflow

owningElement

  返回顶端
padding

paddingBottom

paddingLeft

paddingRight

paddingTop

pageBreakAfter

pageBreakBefore

pageContentElement

palette

parentElement

parentStyleSheet

parentTextEdit

parentWindow

pathname

plugins

pluginspage

port

posHeight

position

posLeft

posTop

posWidth

prompt

protocol

  返回顶端
readOnly(样式表)

readOnly(元素)

rel

returnValue(事件)

rev

rightMargin

rowIndex

rowSpan

rules

  返回顶端
screen

screenX

screenY

scripts

scroll

scrollAmount

scrollDelay

scrollHeight

scrolling

scrollLeft

scrollTop

scrollWidth

search

sectionRowIndex

selected

selectedIndex

selection

self

shape

shiftKey

size(字体)

size(HRElement 高度)

size(控件)

sourceIndex

span

src(声音 URL)

src(外部源代码)

src (URL)

srcElement

start (ImgElement)

start (OListElement)

start(字幕)

style

styleFloat

styleSheet

styleSheets

  返回顶端
tabIndex

tagName

target

tBodies

text(范围)

text(正文颜色)

text(块元素)

text(选项标记文本)

textAlign

textDecoration

textDecorationBlink

textDecorationLineThrough

textDecorationNone

textDecorationOverline

textDecorationUnderline

textIndent

textTransform

tFoot

tHead

title(样式表)

title(元素)

toElement

top

topMargin

trueSpeed

type(列表样式)

type(所选内容)

type(样式表语言)

type(默认按钮表现方式)

type(事件或脚本名称)

type (Mime)

type(CSS 语言)

type(固有控件)

type(脚本语言)

  返回顶端
units

urn

useMap

vAlign(标题)

vAlign(元素)

value(对象)

value(控件)

value(排序列表)

verticalAlign

ViewMode

visibility

vLink

vlinkColor

volume

vrml (ImgElement)

vrml (InputImage)

vspace

web

webbots

width(水平分辨率)

width(元素 – 计算宽度)

width(元素)

window(或本身)

wrap

x

y

zIndex



注意  FrontPage Page 对象模型帮助引用的是 Internet Explorer 4.0 动态 HTML 帮助文件 (HTMLRef.chm) 中定义的对象、方法、属性和事件。此帮助文件中的示例和说明最早是为使用 JavaScript 编程语言而创建的。JavaScript 语言和 Microsoft Visual Basic 有所不同。例如,HTMLRef.chm 在属性或方法返回一个不存在的对象时建议检查 NULL。这在 Visual Basic 中是不正确的。在 Visual Basic 语言中,这种情况下会返回 Nothing 类型。Visual Basic 用户可以通过使用 Is 关键字来检查对象是否为 Nothing

例如,

If MyObject Is Nothing Then

另外,许多示例是以 JavaScript 给出的,而非 Visual Basic。JavaScript 在结构和格式上与 C++ 语言很相似。

下列是一个 JavaScript 示例。

var Table = document.all.tags("table").item(0);
var TableCell = table.rows(3).cells(2);
TableCell.innertext = ""
While (p != NULL)
{
    TableCell.innerText = p.tagName;
    var p = p.parentElement
    TableCell.innertext = p.tagName;
    TableCell.innertext += "+";
    TableCell.innertext += TableCell.innertext;
}

下列是以 Visual Basic 编写的具有相同功能的示例。

Sub SetText()

  Set TableCell = table.Rows(3).Cells(2)
  Set p = TableCell
  TableCell.innerText = ""
  Do While Not p Is Nothing
    TableCell.innerText = p.tagName & "+" & TableCell.innerText
    Set p = p.parentElement
  Loop

End Sub