目录搜索
简介 Introducing样式表简介 Introduction to CSS2关于本手册 About this handbook苏沈小雨 About rain1977属性 Properties字体 Fontfontcolorfont-familyfont-sizefont-size-adjustfont-stretchfont-stylefont-weighttext-decorationtext-underline-positiontext-shadowfont-varianttext-transformline-heightletter-spacingword-spacing文本 Texttext-indenttext-overflowvertical-aligntext-alignlayout-flowwriting-modedirectionunicode-bidiword-breakline-breakwhite-spaceword-wraptext-autospacetext-kashida-spacetext-justifyruby-alignruby-overhangruby-positionime-modelayout-gridlayout-grid-charlayout-grid-char-spacinglayout-grid-linelayout-grid-modelayout-grid-type背景 Backgroundbackgroundbackground-attachmentbackground-colorbackground-imagebackground-positionbackground-positionXbackground-positionYbackground-repeatlayer-background-colorlayer-background-image定位 Positioningpositionz-indextoprightbottomleft尺寸 Dimensionsheightmax-heightmin-heightwidthmax-widthmin-width布局 Layoutclearfloatclipoverflowoverflow-xoverflow-ydisplayvisibility外补丁 Marginsmarginmargin-topmargin-rightmargin-bottommargin-left轮廓 Outlinesoutlineoutline-coloroutline-styleoutline-width边框 borderborderborder-colorborder-styleborder-widthborder-topborder-top-colorborder-top-styleborder-top-widthborder-rightborder-right-colorborder-right-styleborder-right-widthborder-bottomborder-bottom-colorborder-bottom-styleborder-bottom-widthborder-leftborder-left-colorborder-left-styleborder-left-width内容 Generated Contentinclude-sourcequotescontentcounter-incrementcounter-reset内补丁 Paddingspaddingpadding-toppadding-rightpadding-bottompadding-left列表 Listslist-stylelist-style-imagelist-style-positionlist-style-typemarker-offset表格 tableborder-collapseborder-spacingcaption-sideempty-cellstable-layoutspeak-header滚动条 Scrollbarscrollbar-3d-light-colorscrollbar-highlight-colorscrollbar-face-colorscrollbar-arrow-colorscrollbar-shadow-colorscrollbar-dark-shadow-colorscrollbar-base-color打印 Printingpagepage-break-afterpage-break-beforepage-break-insidemarksorphanssizewidows声音 Auralvoice-familyvolumeelevationazimuthstressrichnessspeech-ratecuecue-aftercue-beforepausepause-afterpause-beforepitchpitch-rangeplay-duringspeakspeak-numeralspeak-punctuation其它 Classificationcursorbehaviorfilterzoom选择符 Selectors通配选择符 Universal Selector类型选择符 Type Selectors属性选择符 Attribute Selectors包含选择符 Descendant Selectors子对象选择符 Child SelectorsID选择符 ID Selectors类选择符 Class Selectors选择符分组 Grouping伪类 Pseudo-Classes:link:hover:active:visited:focus:first-letter:first-line:first-child:first:left:right:lang伪对象 Pseudo-Elements:before:after规则 At-Rules@import@charset@font-face@fontdef@page@media声明 Declaration!important单位 Units长度 Lengthpxemexptpcinmmcm颜色 Colorrgb(RGB)#RRGGBBColor Name角度 Angledeggradrad时间 Timesms频率 FrequencyHzkHz附录 Appendix颜色表 Color Table设备类型 Media Types字符集识别 Character Set RecognitionISO Latin-1字符集 ISO Latin-1 Character SetHTML附加命名实体特殊文本和BIDI文本的字符实体
文字

DHTMLET® 属性清单 | 相关内容:
top版本:CSS2  兼容性:IE4+ NS4+ 继承性:无

 
语法:
 
top : auto | length
 
参数:
 
auto :  无特殊定位,根据HTML定位规则载文档流中分配
length :  由浮点数字和单位标识符组成的长度值,或者百分数。必须定义position属性值为absolute或者relative此取值方可生效。请参阅长度单位
 
说明:
 
检索或设置对象与其最近一个定位的父对象顶部相关的位置。
对应的脚本特性为top。其值为一字符串,所以不可用于脚本(Scripts)中的计算。请使用style对象的posToppixelTop,以及对象的offsetTop等特性。请参阅我编写的其他书目。
 
示例:
 
div { position: absolute; top: 1in; }
div { position:relative; top:-3px; left:6px; }
 
 
 
苏沈小雨制作·保留所有权利
&copy2001 rain1977.comer . All rights reserved . Terms of Use .
上一篇:下一篇: