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

 
语法:
 
background-position : length || length
background-position : position || position
 
参数:
 
length :  百分数 | 由浮点数字和单位标识符组成的长度值。请参阅长度单位
position :  top | center | bottom | left | center | right
 
说明:
 
设置或检索对象的背景图像位置。必须先指定background-image属性。默认值为:(0% 0%)
如果只指定了一个值,该值将用于横坐标。纵坐标将默认为50%。第二个值将用于纵坐标。该属性定位不受对象的补丁属性(padding)设置影响。
对应的脚本特性为backgroundPosition。请参阅我编写的其他书目。
 
示例:
 
div { background: url("images/aardvark.gif"); background-position: 35% 80%; }
menu { background: url("images/aardvark.gif"); background-position: 35% 2.5cm; }
a { background: url("images/aardvark.gif"); background-position: 3.25in; }
body { background: url("images/aardvark.gif"); background-position: top right; }
 
 
 
苏沈小雨制作·保留所有权利
&copy2001 rain1977.comer . All rights reserved . Terms of Use .
上一篇:下一篇: