目录搜索
简介 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® 属性清单 | 相关内容:
position版本:CSS2  兼容性:IE4+ NS4+ 继承性:无

 
语法:
 
position : static | absolute | fixed | relative
 
参数:
 
static :  无特殊定位,对象遵循HTML定位规则
absolute :  将对象从文档流中拖出,使用left,right,top,bottom等属性进行绝对定位。而其层叠通过z-index属性定义。此时对象不具有边距,但仍有补白和边框
relative :  对象不可层叠,但将依据left,right,top,bottom等属性在正常文档流中偏移位置
fixed :  IE5.5及NS6尚不支持此属性
 
说明:
 
检索对象的定位方式。
对应的脚本特性为position。请参阅我编写的其他书目。
 
示例:
 
div { position: absolute; bottom: 1in; left: 1in; right: 1in; top: 1in; }
div { position:relative; top:-3px; left:6px; }
 
小 强  bottom : -20px
 小强的属性:

 
 
 
苏沈小雨制作·保留所有权利
&copy2001 rain1977.comer . All rights reserved . Terms of Use .
上一篇:下一篇: