元素风格之IHTMLStyle

来源:互联网 发布:手机防沉溺软件 编辑:程序博客网 时间:2024/05/01 06:15
IHTMLStyle
overflow 如何管理当目标内容超出目标的长宽或宽度 可取的值如下:
1.visible 超出内容不省略,也不显示滚动条
2.scroll 超出的内容会省略,即使内容不超出范围也会有滚动条
3.hidden 超出目标范围的内容被隐藏
4.auto 超出的内容省略,滚动条来查看省略的内容


margin 设置或获取目标上下左右边缘的宽度(设置的格式 top | right | bottom | left 例如0px|0px|0px|0px)
marginBottom 底部
marginLeft 左边
marginRight 右边
marginTop 顶部
padding 设置或获取目标内容顶部、底部、右边、左边距离边缘或边框(如果有边框)的距离
paddingBottom 底部
paddingLeft 左边
paddingRight 右边
paddingTop 顶部
border 指定目标边框的属性
borderLeft 左边
borderBottom 底部
borderRight 右边
borderTop 顶部
borderWidth 指定目标上下左右的边框的宽度
borderTopWidth 顶部
borderLeftWidth 左边
borderBottomWidth 底部
borderRightWidth 右边
background 指定对象的背景属性
backgroundAttachment 指定背景图片是如何添加到文档中的目标里的
backgroundColor 指定背景色
backgroundImage 指定背景图片
backgroundPosition 指定对象的背景的位置
backgroundPositionX 指定对象的背景的X位置
backgroundPositionY 指定对象的背景的y位置
backgroundRepeat 指定背景图片如何平铺的
borderColor 指定目标的边框的颜色
borderBottomColor 顶部
borderLeftColor 左部
borderRightColor 右部
borderTopColor 底部
borderStyle 指定目标的边框的样式
borderBottomStyle 底部
borderTopStyle 顶部
borderRightStyle 右部
borderLeftStyle 左部
clear 指定可以在左边或右边显示浮动目标的目标,那么下个文本显示将越过浮动目标
color 目标的文本背景颜色
clip 指定目标的某一刻可见
0 0
原创粉丝点击