CSS_style属性大全
CSS——八大属性

CSS——⼋⼤属性⼀、颜⾊有三种表⽰颜⾊的⽅法:英⽂单词、⼆进制颜⾊代表码、rgb,⼆、字体font-size:15px;设置字体⼤⼩,常⽤像素指定字体⼤⼩,指定长度的字号,不会随着浏览器的变化⽽变化font-family:宋体;设置字体类型font-weight:lighter、bold、bolder,设置字体粗细,常⽤的三种效果选择font-style:oblique;设置字体倾斜font-variant:small-caps;将⼩写字母转成⼤写字母;color:设置字体颜⾊<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>exercise4</title><style>#color_en{color:blue}#color_bin{color:#F0F;}#color_rgb{color:rgb(255,0,255)}#color_pellucidity{color:rgba(255,0,255,0.2)}#ablout_font{background-color:rgba(0,255,255,0.2);}#font_size{background-color:rgba(0,255,255,0.2);font-size:15px;}#font_family{background-color:rgba(0,255,255,0.2);font-family:YouYuan;}#font_lighter{background-color:rgba(0,255,255,0.2);font-weight:lighter;}#font_bold{background-color:rgba(0,255,255,0.2);font-weight:bold;}#font_bolder{background-color:rgba(0,255,255,0.2);font-weight:bolder;}#font_style{background-color:rgba(0,255,255,0.2);font-style:oblique;}</style></head><body><p>练习属性property</p><p id="ablout_font">⼆、关于字体</p><p id="font_size">font-size设置字体⼤⼩,如:15px</p><p id="font_family">font-family设置字体类型如:YouYuan</p><p id="font_weight"><a id="font_bolder">bolder</a></p><p id="font_style">font-style设置字体倾斜</p><p id="color_en">⼀、关于颜⾊</p><p id="color_bin">除了使⽤英⽂单词,还可以使⽤⼗六进制颜⾊对应表(如下图,#FFFF00表⽰黄⾊,还可简写成#FF0)<table border="0"><tbody><tr><td height="30" width="95" bgcolor="#ffffff">#FFFFFF</td><td height="30" width="95" bgcolor="#dddddd">#DDDDDD</td><td height="30" width="95" bgcolor="#aaaaaa">#AAAAAA</td><td height="30" width="95" bgcolor="#888888">#888888</td><td height="30" width="95" bgcolor="#666666">#666666</td><td height="30" width="95" bgcolor="#444444">#444444</td><td height="30" width="95" bgcolor="#000000">#000000</td></tr><tr><td height="30" width="95" bgcolor="#ffb7dd">#FFB7DD</td><td height="30" width="95" bgcolor="#ff88c2">#FF88C2</td><td height="30" width="95" bgcolor="#ff44aa">#FF44AA </td><td height="30" width="95" bgcolor="#ff0088">#FF0088 </td><td height="30" width="95" bgcolor="#c10066">#C10066 </td><td height="30" width="95" bgcolor="#a20055">#A20055 </td><td height="30" width="95" bgcolor="#8c0044">#8C0044 </td></tr><tr><td height="30" width="95" bgcolor="#ffcccc">#FFCCCC</td><td height="30" width="95" bgcolor="#ff8888">#FF8888</td><td height="30" width="95" bgcolor="#ff3333">#FF3333 </td><td height="30" width="95" bgcolor="#ff0000">#FF0000 </td><td height="30" width="95" bgcolor="#cc0000">#CC0000 </td><td height="30" width="95" bgcolor="#aa0000">#AA0000 </td><td height="30" width="95" bgcolor="#880000">#880000 </td></tr><tr><td height="30" width="95" bgcolor="#ffc8b4">#FFC8B4</td><td height="30" width="95" bgcolor="#ffa488">#FFA488</td><td height="30" width="95" bgcolor="#ff7744">#FF7744 </td><td height="30" width="95" bgcolor="#ff5511">#FF5511 </td><td height="30" width="95" bgcolor="#e63f00">#E63F00 </td><td height="30" width="95" bgcolor="#c63300">#C63300 </td><td height="30" width="95" bgcolor="#a42d00">#A42D00 </td></tr><tr><td height="30" width="95" bgcolor="#ffddaa">#FFDDAA</td><td height="30" width="95" bgcolor="#ffbb66">#FFBB66</td><td height="30" width="95" bgcolor="#ffaa33">#FFAA33</td><td height="30" width="95" bgcolor="#ff8800">#FF8800 </td><td height="30" width="95" bgcolor="#ee7700">#EE7700 </td><td height="30" width="95" bgcolor="#cc6600">#CC6600 </td><td height="30" width="95" bgcolor="#bb5500">#BB5500 </td></tr><tr><td height="30" width="95" bgcolor="#ffee99">#FFEE99</td><td height="30" width="95" bgcolor="#ffdd55">#FFDD55</td><td height="30" width="95" bgcolor="#ffcc22">#FFCC22</td><td height="30" width="95" bgcolor="#ffbb00">#FFBB00 </td><td height="30" width="95" bgcolor="#ddaa00">#DDAA00 </td><td height="30" width="95" bgcolor="#aa7700">#AA7700 </td><td height="30" width="95" bgcolor="#886600">#886600 </td></tr><tr><td height="30" width="95" bgcolor="#ffffbb">#FFFFBB</td><td height="30" width="95" bgcolor="#ffff77">#FFFF77</td><td height="30" width="95" bgcolor="#ffff33">#FFFF33</td><td height="30" width="95" bgcolor="#ffff00">#FFFF00</td><td height="30" width="95" bgcolor="#eeee00">#EEEE00</td><td height="30" width="95" bgcolor="#bbbb00">#BBBB00</td><td height="30" width="95" bgcolor="#888800">#888800</td></tr><tr><td height="30" width="95" bgcolor="#eeffbb">#EEFFBB</td><td height="30" width="95" bgcolor="#ddff77">#DDFF77</td><td height="30" width="95" bgcolor="#ccff33">#CCFF33</td><td height="30" width="95" bgcolor="#bbff00">#BBFF00</td><td height="30" width="95" bgcolor="#99dd00">#99DD00</td><td height="30" width="95" bgcolor="#88aa00">#88AA00</td><td height="30" width="95" bgcolor="#ccff99">#CCFF99</td><td height="30" width="95" bgcolor="#bbff66">#BBFF66</td><td height="30" width="95" bgcolor="#99ff33">#99FF33</td><td height="30" width="95" bgcolor="#77ff00">#77FF00</td><td height="30" width="95" bgcolor="#66dd00">#66DD00</td><td height="30" width="95" bgcolor="#55aa00">#55AA00</td><td height="30" width="95" bgcolor="#227700">#227700</td></tr><tr><td height="30" width="95" bgcolor="#99ff99">#99FF99</td><td height="30" width="95" bgcolor="#66ff66">#66FF66</td><td height="30" width="95" bgcolor="#33ff33">#33FF33</td><td height="30" width="95" bgcolor="#00ff00">#00FF00</td><td height="30" width="95" bgcolor="#00dd00">#00DD00</td><td height="30" width="95" bgcolor="#00aa00">#00AA00</td><td height="30" width="95" bgcolor="#008800">#008800</td></tr><tr><td height="30" width="95" bgcolor="#bbffee">#BBFFEE</td><td height="30" width="95" bgcolor="#77ffcc">#77FFCC</td><td height="30" width="95" bgcolor="#33ffaa">#33FFAA</td><td height="30" width="95" bgcolor="#00ff99">#00FF99</td><td height="30" width="95" bgcolor="#00dd77">#00DD77</td><td height="30" width="95" bgcolor="#00aa55">#00AA55</td><td height="30" width="95" bgcolor="#008844">#008844</td></tr><tr><td height="30" width="95" bgcolor="#aaffee">#AAFFEE</td><td height="30" width="95" bgcolor="#77ffee">#77FFEE</td><td height="30" width="95" bgcolor="#33ffdd">#33FFDD</td><td height="30" width="95" bgcolor="#00ffcc">#00FFCC</td><td height="30" width="95" bgcolor="#00ddaa">#00DDAA</td><td height="30" width="95" bgcolor="#00aa88">#00AA88</td><td height="30" width="95" bgcolor="#008866">#008866</td></tr><tr><td height="30" width="95" bgcolor="#99ffff">#99FFFF</td><td height="30" width="95" bgcolor="#66ffff">#66FFFF</td><td height="30" width="95" bgcolor="#33ffff">#33FFFF</td><td height="30" width="95" bgcolor="#00ffff">#00FFFF</td><td height="30" width="95" bgcolor="#00dddd">#00DDDD</td><td height="30" width="95" bgcolor="#00aaaa">#00AAAA</td><td height="30" width="95" bgcolor="#008888">#008888</td></tr><tr><td height="30" width="95" bgcolor="#cceeff">#CCEEFF</td><td height="30" width="95" bgcolor="#77ddff">#77DDFF</td><td height="30" width="95" bgcolor="#33ccff">#33CCFF</td><td height="30" width="95" bgcolor="#00bbff">#00BBFF</td><td height="30" width="95" bgcolor="#009fcc">#009FCC</td><td height="30" width="95" bgcolor="#0088a8">#0088A8</td><td height="30" width="95" bgcolor="#007799">#007799</td></tr><tr><td height="30" width="95" bgcolor="#ccddff">#CCDDFF</td><td height="30" width="95" bgcolor="#99bbff">#99BBFF</td><td height="30" width="95" bgcolor="#5599ff">#5599FF</td><td height="30" width="95" bgcolor="#0066ff">#0066FF </td> <td height="30" width="95" bgcolor="#0044bb">#0044BB </td> <td height="30" width="95" bgcolor="#003c9d">#003C9D </td> <td height="30" width="95" bgcolor="#003377">#003377 </td> </tr><tr><td height="30" width="95" bgcolor="#ccccff">#CCCCFF</td><td height="30" width="95" bgcolor="#9999ff">#9999FF</td><td height="30" width="95" bgcolor="#5555ff">#5555FF </td> <td height="30" width="95" bgcolor="#0000ff">#0000FF </td> <td height="30" width="95" bgcolor="#0000cc">#0000CC </td> <td height="30" width="95" bgcolor="#0000aa">#0000AA </td> <td height="30" width="95" bgcolor="#000088">#000088 </td> </tr><tr><td height="30" width="95" bgcolor="#ccbbff">#CCBBFF</td><td height="30" width="95" bgcolor="#9f88ff">#9F88FF</td><td height="30" width="95" bgcolor="#7744ff">#7744FF </td> <td height="30" width="95" bgcolor="#5500ff">#5500FF </td> <td height="30" width="95" bgcolor="#4400cc">#4400CC </td> <td height="30" width="95" bgcolor="#2200aa">#2200AA </td> <td height="30" width="95" bgcolor="#220088">#220088 </td> </tr><tr><td height="30" width="95" bgcolor="#7700ff">#7700FF </td><td height="30" width="95" bgcolor="#5500dd">#5500DD </td><td height="30" width="95" bgcolor="#4400b3">#4400B3 </td><td height="30" width="95" bgcolor="#3a0088">#3A0088 </td></tr><tr><td height="30" width="95" bgcolor="#e8ccff">#E8CCFF</td><td height="30" width="95" bgcolor="#d28eff">#D28EFF</td><td height="30" width="95" bgcolor="#b94fff">#B94FFF </td><td height="30" width="95" bgcolor="#9900ff">#9900FF </td><td height="30" width="95" bgcolor="#7700bb">#7700BB </td><td height="30" width="95" bgcolor="#66009d">#66009D </td><td height="30" width="95" bgcolor="#550088">#550088 </td></tr><tr><td height="30" width="95" bgcolor="#f0bbff">#F0BBFF</td><td height="30" width="95" bgcolor="#e377ff">#E38EFF</td><td height="30" width="95" bgcolor="#d93eff">#E93EFF </td><td height="30" width="95" bgcolor="#cc00ff">#CC00FF </td><td height="30" width="95" bgcolor="#a500cc">#A500CC </td><td height="30" width="95" bgcolor="#7a0099">#7A0099 </td><td height="30" width="95" bgcolor="#660077">#660077 </td></tr><tr><td height="30" width="95" bgcolor="#ffb3ff">#FFB3FF</td><td height="30" width="95" bgcolor="#ff77ff">#FF77FF</td><td height="30" width="95" bgcolor="#ff3eff">#FF3EFF </td><td height="30" width="95" bgcolor="#ff00ff">#FF0 0FF </td><td height="30" width="95" bgcolor="#cc00cc">#CC00CC </td><td height="30" width="95" bgcolor="#990099">#990099 </td><td height="30" width="95" bgcolor="#770077">#770077 </td></tr></tbody></table></p><p id="color_rgb">颜⾊还可以使⽤rgb(255,0,255)的⽅式</p><p id="color_pellucidity">使⽤rgba(255,0,255,0.6)最后⼀位设置透明度,取值0-1,</p></body></html>View Code注意:可使⽤复合属性font,设置字体相关属性值,不同属性值之间使⽤空格隔开。
CSS中style用法详解

CSS中style⽤法详解css样式表按其所在位置分三种:1.内嵌样式表2.内部样式表3.外部样式表下⾯详细解释⼀下:1.内嵌样式表是写在使⽤它的标签(Tag)内的,例如要在<p>标签中使⽤,其语法为:<p style font-size:20pt>这段⽂字使⽤了内嵌样式表,更改了字体⼤⼩为20</p>2.内部样式表不同于内嵌样式表,其是写在html⽹页的<head></head>标签之间的,所以它对本⽹页全部有效。
应注意的是,因为它不是写在某⼀个标签内的,所以在写的时候要注意,⾃⼰想在那个标签内使⽤这个样式表,再定义的时候也要写清楚,否则会造成整个页⾯的混乱。
例如:<html><head>p.mylayout <style type="text/css">{font-size:22pt; color:blue; border-width:1px; border:double; text-align:center; }</style></head><body><!--这个样式表只⽤了⼀部分属性,定义是在<style>前⾯的p.mylayout,这⾥⾯的p意思是在<p>这个标签⾥才可以使⽤这个样式表,⽽mylayout是这个样式表的名字,也可以理解为这个样式表的变量名(把⼀个样式表当成⼀个变量),便于以后在<p>标签中调⽤。
注意下⾯的调⽤。
---><p class="mylayout">这段⽂字使⽤了样式表</p><p>这段⽂字没有使⽤样式表</p></body></html>可以看到,在定义内部样式表的时候,<style>前⾯声明的时候应该⾸先声明在哪个标签⾥使⽤这个样式表,如果并不想在该⽹页所有的此标签中都使⽤这个样式表则在声明的标签后⾯加上⾃⼰定义的⼀个样式表名称,例如上⾯的p.mylayout,意为只能在该⽹页的<p>标签中使⽤此样式表,在要使⽤这个样式表的<p>标签中声明,声明⽅式为<标签⾃定义样式表名称>利⽤样式表选择,你可以⽤同样的HTML标签构成不同的样式。
jquery设置css样式、style属性

jquery设置css样式、style属性⼀、CSS1、css(name)访问第⼀个匹配元素的样式属性。
返回值 String参数name (String) : 要访问的属性名称⽰例:$("p").css("color"); //取得第⼀个段落的color样式属性的值2、css(properties)把⼀个“名/值对”对象设置为所有匹配元素的样式属性。
这是⼀种在所有匹配的元素上设置⼤量样式属性的最佳⽅式。
返回值 jQuery参数properties (Map) : 要设置为样式属性的名/值对⽰例://1 将所有段落的字体颜⾊设为红⾊并且背景为蓝⾊$("p").css({ color: "#ff0011", background: "blue" });//2 如果属性名包含 "-"的话,必须使⽤引号$("p").css({ "margin-left": "10px", "background-color": "blue" });3、css(name,value)在所有匹配的元素中,设置⼀个样式属性的值。
数字将⾃动转化为像素值返回值 jQuery参数name (value) : 属性名value (String, Number) : 属性值⽰例:$("p").css("color","red"); //将所有段落字体设为红⾊⼆、位置1、offset()获取匹配元素在当前视窗⼝的相对偏移。
返回的对象包含两个整形属性:top 和 left。
注意:此⽅法只对可见元素有效。
返回值 Object{top,left}⽰例:/*//获取第⼆段的偏移⽂档⽚段:<p>Hello</p><p>2nd Paragraph</p>*/var p = $("p:last");var offset = p.offset();p.html("left: " + offset.left + ", top: " + offset.top);2、position()获取匹配元素相对⽗元素的偏移。
CSS属性大全完整版

CSS属性大全完整版字体属性:(font)大小font-size:x-large; (特大) xx-small; (极小)一般中文用不到,只要用数值就可以,单位:PX、PD 样式font-style:oblique; (偏斜体) italic; (斜体) normal; (正常) 行高line-height:normal; (正常) 单位:PX、PD、EM粗细font-weight:bold; (粗体) lighter; (细体) normal; (正常)变体font-variant:small-caps; (小型大写字母) normal; (正常)大小写text-transform:capitalize; (首字母大写) uppercase; (大写)lowercase; (小写) none; (无)修饰text-decoration:underline; (下划线) overline; (上划线)line-through; (删除线) blink; (闪烁)常用字体font-family:"Courier New", Courier, monospace, "Times New Roman", Times, serif, Arial, Helvetica, sans-serif, Verdana背景属性:(background)色彩background-color: #FFFFFF;图片background-image: url();重复background-repeat: no-repeat;滚动background-attachment:fixed; (固定) scroll; (滚动)位置background-position:Left (水平) top (垂直);简写方法background:#000 url(..) repeat fixed left top;区块属性:(Block)字间距letter-spacing: normal; 数值对齐text-align:justify; (两端对齐) left; (左对齐)right; (右对齐) center; (居中)缩进text-indent: 数值px;垂直对齐vertical-align:baseline; (基线) sub; (下标) super; (下标)text-top; 文本顶端对齐| middle; 居中|bottom; 底部| text-bottom; 相对文本底端对齐词间距word-spacing: normal; 数值空格white-space:pre; (保留) nowrap; (不换行)显示display:block; (块) inline; (内嵌) list-item; (列表项)run-in; (追加部分) compact; (紧凑) marker; (标记)table; 表格inline-table; 内嵌表格table-raw-group;table-header-group; table-footer-group; table-raw;table-column-group; table-column; table-cell;table-caption; (表格标题)方框属性:(Box)width:; 宽height:; 高float:; 浮动clear:both; 清除浮动margin:; 外边距padding:; 内边距顺序:上右下左边框属性:(Border)border-style:dotted; (点线) dashed; (虚线) solid; (实线)double; (双线) groove; (槽线) ridge; (脊状)inset; (凹陷) outset; (外凸)border-width:; 边框宽度border-color:#; 边框颜色简写方法border:width style color;列表属性:(List-style)类型list-style-type:disc; (圆点) circle; (圆圈) square; (方块) decimal; (数字) lower-roman; (小写罗码数字) upper-roman; (大写罗码数字)lower-alpha; (小写字母) upper-alpha; (大写字母)位置list-style-position:outside; (外) inside; (里)图像list-style-image: url(..);定位属性:(Position)位置Position:absolute; 绝对位置|relative; 相对位置|static; 静止可见性visibility:inherit; 继承父元素| visible; 可见| hidden; 隐藏内容超出时overflow:visible; 可见| hidden; 隐藏| scroll; 滚动| auto; 自动裁切clip: rect(12px,auto,12px,auto)css属性代码大全一CSS文字属性:color : #999999; /*文字颜色*/font-family : 宋体,sans-serif; /*文字字体*/ font-size : 9pt; /*文字大小*/font-style:itelic; /*文字斜体*/font-variant:small-caps; /*小字体*/letter-spacing : 1pt; /*字间距离*/line-height : 200%; /*设置行高*/font-weight:bold; /*文字粗体*/vertical-align:sub; /*下标字*/vertical-align:super; /*上标字*/text-decoration:line-through; /*加删除线*/ text-decoration: overline; /*加顶线*/text-decoration:underline; /*加下划线*/ text-decoration:none; /*删除链接下划线*/ text-transform : capitalize; /*首字大写*/ text-transform : uppercase; /*英文大写*/ text-transform : lowercase; /*英文小写*/ text-align 水平对齐text-align:right; /*文字右对齐*/text-align:left; /*文字左对齐*/text-align:center; /*文字居中对齐*/text-align:justify; /*文字分散对齐*/ vertical-align 垂直对齐vertical-align:top; /*垂直向上对齐*/ vertical-align:bottom; /*垂直向下对齐*/vertical-align:middle; /*垂直居中对齐*/vertical-align:text-top; /*文字垂直向上对齐*/ vertical-align:text-bottom; /*文字垂直向下对齐*/二、CSS边框空白padding-top:10px; /*上边框留空白*/padding-right:10px; /*右边框留空白*/padding-bottom:10px; /*下边框留空白*/ padding-left:10px; /*左边框留空白/三、CSS符号属性:list-style-type:none; /*不编号*/list-style-type:decimal; /*阿拉伯数字*/list-style-type:lower-roman; /*小写罗马数字*/ list-style-type:upper-roman; /*大写罗马数字*/ list-style-type:lower-alpha; /*小写英文字母*/list-style-type:upper-alpha; /*大写英文字母*/list-style-type:disc; /*实心圆形符号*/list-style-type:circle; /*空心圆形符号*/list-style-type:square; /*实心方形符号*/list-style-image:url(/dot.gif); /*图片式符号*/list-style-position: outside; /*凸排*/list-style-position:inside; /*缩进*/四、CSS背景样式:background-color:#F5E2EC; /*背景颜色*/ background:transparent; /*透视背景*/background-image : url(/image/bg.gif); /*背景图片*/ background-attachment : fixed; /*浮水印固定背景*/ background-repeat : repeat; /*重复排列-网页默认*/ background-repeat : no-repeat; /*不重复排列*/ background-repeat : repeat-x; /*在x轴重复排列*/ background-repeat : repeat-y; /*在y轴重复排列*/指定背景位置background-position : 90% 90%; /*背景图片x与y轴的位置*/ background-position : top; /*向上对齐*/background-position : buttom; /*向下对齐*/background-position : left; /*向左对齐*/background-position : right; /*向右对齐*/background-position : center; /*居中对齐*/五、CSS连接属性:a /*所有超链接*/a:link /*超链接文字格式*/a:visited /*浏览过的链接文字格式*/a:active /*按下链接的格式*/a:hover /*鼠标经过链接*/鼠标光标样式:链接手指CURSOR: hand十字体cursor:crosshair箭头朝下cursor:s-resize十字箭头cursor:move箭头朝右cursor:move加一问号cursor:help箭头朝左cursor:w-resize箭头朝上cursor:n-resize箭头朝右上cursor:ne-resize箭头朝左上cursor:nw-resize文字I型cursor:text箭头斜右下cursor:se-resize箭头斜左下cursor:sw-resize漏斗cursor:wait光标图案(IE6) p {cursor:url("光标文件名.cur"),text;}六、CSS框线一览表:border-top : 1px solid #6699cc; /*上框线*/border-bottom : 1px solid #6699cc; /*下框线*/border-left : 1px solid #6699cc; /*左框线*/border-right : 1px solid #6699cc; /*右框线*/以上是建议书写方式,但也可以使用常规的方式如下: border-top-color : #369 /*设置上框线top颜色*/ border-top-width :1px /*设置上框线top宽度*/ border-top-style : solid/*设置上框线top样式*/其他框线样式solid /*实线框*/dotted /*虚线框*/double /*双线框*/groove /*立体内凸框*/ridge /*立体浮雕框*/inset /*凹框*/outset /*凸框*/七、CSS表单运用:<div><form><p>用户: <input type="text" class="text"></p>...</form></div>type属性取值单行文本域<p>用户: <input type="text" class="text"></p><input type="text" size="" maxlength="">单行的文本输入区域,size与maxlength属性用来定义此种输入区域显示的尺寸大小与输入的最大字符数多行文本域<p> <textarea cols="45" rows="5"></textarea></p>Cols:字符宽度rows:行数提交重置<p> <input type="submit" id="按钮" value="提交" /><input type="reset" id="重置" value="重置" /></p>提交到服务器的按钮,当这个按钮被点击时,就会连接到表单form属性action指定的url地址。
CSS_style属性大全

CSS style属性大全显示:标签属性/属性行为集合事件滤镜方法对象样式一、标签属性属性描述ALIGN align 设置或获取表格排列。
ALLOWTRANSPARENCY allowTransparency 设置或获取对象是否可为透明。
APPLICATION APPLICATION 表明对象的内容是否为HTML 应用程序(HTA),以便免除浏览器安全模式。
ATOMICSELECTION 指定元素及其内容是否可以一不可见单位统一选择。
BEGIN begin 设置或获取时间线在该元素上播放前的延迟时间。
BORDER border 设置或获取框架间的空间,包括3D 边框。
canHaveChildren 获取表明对象是否可以包含子对象的值。
canHaveHTML 获取表明对象是否可以包含丰富的HTML 标签的值。
CLASS className 设置或获取对象的类。
contentWindow 获取指定的frame 或iframe 的window 对象。
DA TAFLD dataFld 设置或获取由dataSrc 属性指定的绑定到指定对象的给定数据源的字段。
DA TASRC dataSrc 设置或获取用于数据绑定的数据源。
disabled 获取表明用户是否可与该对象交互的值。
END end 设置或获取表明元素结束时间的值,或者元素设置为重复的简单持续终止时间。
firstChild 获取对象的childNodes 集合的第一个子对象的引用。
FRAMEBORDER frameBorder 设置或获取是否显示框架的边框。
hasMedia 获取一个表明元素是否为HTML+TIME 媒体元素的Boolean 值。
HEIGHT height 设置或获取对象的高度。
HIDEFOCUS hideFocus 设置或获取表明对象是否显式标明焦点的值。
HSPACE hspace 设置或获取对象的水平边距。
ID id 获取标识对象的字符串。
CSS属性一览表

CSS 列表属性属性名称属性含义属性值字体属性 font-family使用什么字体使用什么字体 所有的字体所有的字体font-style 字体是否斜体字体是否斜体 Normal Normal、、italic italic、、oblique font-variant 是否用小体大写是否用小体大写 Normal Normal、、small-capsfont-weight 字体的粗细字体的粗细 Normal Normal、、bold bold、、bolder bolder、、lithter 等 font-size 字体的大小字体的大小 Absolute-size Absolute-size、、relative-size relative-size、、length length、、percentage 等 颜色和背景属性Color定义前景色定义前景色 颜色颜色 Background-color 定义背景色定义背景色 颜色颜色 Background-image 定义背景图案定义背景图案 路径路径Background-repeat 重复方式重复方式 Repeat-x Repeat-x、、repeat-y repeat-y、、no-repeat Background-attachment 设置滚动设置滚动 Scroll Scroll、、FixedBackground-position 初始位置初始位置 Percentage Percentage、、length length、、top top、、left left、、right right、、bottom 等文本属性 Word-spacing 单词之间的间距单词之间的间距 Normal <length> Letter-spacing 字母之间的间距字母之间的间距 同上同上Text-decoration 文字的装饰文字的装饰 None|underline|overline|line-through|blink| Vertical-align垂直方向的位置垂直方向的位置 Baseline|sub|super|top|text-top|middle|bottom|text-bottom| Text-transform 文本转换文本转换 Capitalize|uppercase|lowercase|none Text-align 文本排列文本排列 Left|right|center|justify Text-indent首行的缩进方式首行的缩进方式 <length>|<percentage> Line-height 文本的行高文本的行高 Normal|<number>|<length>|<percentage> Whihe-space 处理空白处理空白 Unicode-bidi 与diretion文本反排文本反排边距属性Margin-top 顶端边距顶端边距 Length|percentage|auto Margin-right右侧边距右侧边距 同上同上 Margin-bottom 底端边距底端边距 同上同上 Margin-left 左侧边距左侧边距 同上同上填充距属性Padding-top 顶端填充距顶端填充距 Length|percentage Padding-right 右侧填充距右侧填充距 同上同上 Padding-bottom 底端填充距底端填充距 同上同上 Padding-left 左侧填充距左侧填充距 同上同上边框属性.Border-top-width 顶端边框宽度顶端边框宽度 Thin|medium|thick|length Border-right-width 右侧边框宽度右侧边框宽度 同上同上 Border-bottom-width 底端边框宽度底端边框宽度 同上同上 Border-left-width 左侧边框宽度左侧边框宽度 同上同上 Border-width一次定义宽度一次定义宽度同上同上边框属性.边框属性Border-color 设置边框颜色设置边框颜色 ColorBorder-style 设置边框样式设置边框样式 None|dotted|dash|solid等Border-top 一次定义顶端一次定义顶端 Border-top-width|color等Border-right 一次定义右侧一次定义右侧 同上同上Border-bottom 一次定义底端一次定义底端 同上同上Border-left 一次定义左侧一次定义左侧 同上同上Width 定义宽度属性定义宽度属性 Length|percentage|auto Height 定义高度属性定义高度属性 Length|autoFloat 文字环绕文字环绕 Left|right|noneClear 哪一边环绕哪一边环绕 Left|right|none|both分级属性Display 定义是否显示定义是否显示 BlockBlock、、inlineinline、、list-itemlist-item、、none White-space 怎样处理空白怎样处理空白 NormalNormal、、prepre、、nowrapList-style-type 加项目编号加项目编号 DiscDisc、、circlecircle、、square等List-style-image 加图案加图案 <url>|noneList-style-position 第二行起始位置第二行起始位置 InsideInside、、outsideList-style 一次定义列表一次定义列表 <keyword>|<position> |<url>鼠标属性自动自动 Auto定位“十”字定位“十”字 Crosshair 默认指针默认指针 Default手形手形 Hand移动移动 Move箭头朝右方箭头朝右方 e-resize 箭头朝右上方箭头朝右上方 Ne-resize 箭头朝左上方箭头朝左上方 Nw-resize 箭头朝上方箭头朝上方 n-resize 箭头朝右下方箭头朝右下方 Se-resize 箭头朝左下方箭头朝左下方 Sw-resize 箭头朝下方箭头朝下方 s-resize 箭头朝左方箭头朝左方 w-resize 文本“I”形文本“I”形 Text等待等待 Wait帮助帮助 Help。
css属性大全

字体属性:(font)大小 font-size: x-large;(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD样式 font-style: oblique;(偏斜体) italic;(斜体) normal;(正常)行高 line-height: normal;(正常) 单位:PX、PD、EM粗细 font-weight: bold;(粗体) lighter;(细体) normal;(正常)变体 font-variant: small-caps;(小型大写字母) normal;(正常)大小写 text-transform: capitalize;(首字母大写) uppercase;(大写) lowercase;(小写) none;(无)修饰 text-decoration: underline;(下划线) overline;(上划线) line-through;(删除线) blink;(闪烁)常用字体: (font-family)"Courier New", Courier, monospace, "Times New Roman", Times, serif, Arial, Helvetica, sans-serif, Verdana背景属性: (background)色彩background-color: #FFFFFF;图片background-image: url();重复background-repeat: no-repeat;滚动background-attachment: fixed;(固定) scroll;(滚动)位置background-position: left(水平) top(垂直);简写方法 background:#000 url(..) repeat fixed left top;区块属性: (Block)字间距letter-spacing: normal; 数值对刘text-align: justify;(两端对齐) left;(左对齐) right;(右对齐) center;(居中) 缩进text-indent: 数值px;垂直对齐vertical-align: baseline;(基线) sub;(下标) super;(下标) top; text-top; middle; bottom; text-bottom;词间距word-spacing: normal; 数值空格white-space: pre;(保留) nowrap;(不换行)显示display:block;(块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table; inline-table; table-raw-group; table-header-group; table-footer-group; table-raw; table-column-group; table-column; table-cell; table-caption;(表格标题)方框属性: (Box)width:; height:; float:; clear:both; margin:; padding:; ??? 顺序:上右下左边框属性: (Border)border-style: dotted;(点线) dashed;(虚线) solid; double;(双线) groove;(槽线) ridge;(脊状) inset;(凹陷) outset;border-width:; 边框宽度border-color:#;简写方法border:width style color;列表属性: (List-style)类型list-style-type: ?? disc;(圆点) circle;(圆圈) square;(方块) decimal;(数字) lower-roman;(小罗码数字) upper-roman; lower-alpha; upper-alpha;位置list-style-position: outside;(外) inside;图像list-style-image: url(..);定位属性: (Position)Position: absolute; relative; static;visibility: inherit; visible; hidden;overflow: visible; hidden; scroll; auto;clip: rect(12px,auto,12px,auto) (裁切)?css属性代码大全一 CSS文字属性:color : #999999; /*文字颜色*/font-family : 宋体,sans-serif; /*文字字体*/?font-size : 9pt; /*文字大小*/?font-style:itelic; /*文字斜体*/?font-variant:small-caps; /*小字体*/?letter-spacing : 1pt; /*字间距离*/?line-height : 200%; /*设置行高*/?font-weight:bold; /*文字粗体*/?vertical-align:sub; /*下标字*/?vertical-align:super; /*上标字*/?text-decoration:line-through; /*加删除线*/?text-decoration: overline; /*加顶线*/?text-decoration:underline; /*加下划线*/?text-decoration:none; /*删除链接下划线*/?text-transform : capitalize; /*首字大写*/?text-transform : uppercase; /*英文大写*/?text-transform : lowercase; /*英文小写*/?text-align:right; /*文字右对齐*/??text-align:left; /*文字左对齐*/?text-align:center; /*文字居中对齐*/?text-align:justify; /*文字分散对齐*/?vertical-align属性vertical-align:top; /*垂直向上对齐*/?vertical-align:bottom; /*垂直向下对齐*/?vertical-align:middle; /*垂直居中对齐*/?vertical-align:text-top; /*文字垂直向上对齐*/? vertical-align:text-bottom; /*文字垂直向下对齐*/?二、CSS边框空白padding-top:10px; /*上边框留空白*/?padding-right:10px; /*右边框留空白*/?padding-bottom:10px; /*下边框留空白*/?padding-left:10px; /*左边框留空白三、CSS符号属性:list-style-type:none; /*不编号*/?list-style-type:decimal; /*阿拉伯数字*/?list-style-type:lower-roman; /*小写罗马数字*/?list-style-type:upper-roman; /*大写罗马数字*/?list-style-type:lower-alpha; /*小写英文字母*/?list-style-type:upper-alpha; /*大写英文字母*/?list-style-type:disc; /*实心圆形符号*/?list-style-type:circle; /*空心圆形符号*/?list-style-type:square; /*实心方形符号*/?list-style-image:url(/; /*图片式符号*/?list-style-position: outside; /*凸排*/?list-style-position:inside; /*缩进*/?四、CSS背景样式:background-color:#F5E2EC; /*背景颜色*/??background:transparent; /*透视背景*/?background-image : url(/image/; /*背景图片*/?background-attachment : fixed; /*浮水印固定背景*/? background-repeat : repeat; /*重复排列-网页默认*/? background-repeat : no-repeat; /*不重复排列*/?background-repeat : repeat-x; /*在x轴重复排列*/? background-repeat : repeat-y; /*在y轴重复排列*/?指定背景位置background-position : 90% 90%; /*背景图片x与y轴的位置*/? background-position : top; /*向上对齐*/?background-position : buttom; /*向下对齐*/?background-position : left; /*向左对齐*/?background-position : right; /*向右对齐*/?background-position : center; /*居中对齐*/?五、CSS连接属性:a /*所有超链接*/?a:link /*超链接文字格式*/??a:visited /*浏览过的链接文字格式*/?a:active /*按下链接的格式*/?a:hover /*鼠标转到链接*/?鼠标光标样式:链接手指 CURSOR: hand?十字体 cursor:crosshair?箭头朝下 cursor:s-resize?十字箭头 cursor:move?箭头朝右 cursor:move?加一问号 cursor:help?箭头朝左 cursor:w-resize?箭头朝上 cursor:n-resize?箭头朝右上 cursor:ne-resize?箭头朝左上 cursor:nw-resize?文字I型 cursor:text?箭头斜右下 cursor:se-resize?箭头斜左下 cursor:sw-resize?漏斗 cursor:wait?光标图案(IE6)?? p {cursor:url("光标文件名.cur"),text;}?六、CSS框线一览表:border-top : 1px solid #6699cc; /*上框线*/?border-bottom : 1px solid #6699cc; /*下框线*/?border-left : 1px solid #6699cc; /*左框线*/??border-right : 1px solid #6699cc; /*右框线*/?以上是建议书写方式,但也可以使用常规的方式如下:border-top-color : #369 /*设置上框线top颜色*/?border-top-width :1px /*设置上框线top宽度*/?border-top-style : solid/*设置上框线top样式*/?其他框线样式solid /*实线框*/?dotted /*虚线框*/?double /*双线框*/?groove /*立体内凸框*/?ridge /*立体浮雕框*/?inset /*凹框*/?outset /*凸框*/?七、CSS表单运用:文字方块??按钮??复选框??选择钮??多行文字方块??下拉式菜单选项1选项2?八、CSS边界样式:margin-top:10px; /*上边界*/?margin-right:10px; /*右边界值*/?margin-bottom:10px; /*下边界值*/?margin-left:10px; /*左边界值*/???CSS 属性:字体样式(Font Style)?序号中文说明标记语法?1 字体样式 {font:font-style font-variant font-weight font-size font-family}??2 字体类型 {font-family:"字体1","字体2","字体3",...}??3 字体大小 {font-size:数值|inherit| medium| large| larger| x-large| xx-large| small| smaller| x-small| xx-small}??4 字体风格 {font-style:inherit|italic|normal|oblique}??5 字体粗细?? {font-weight:100-900|bold|bolder|lighter|normal;}??6 字体颜色?? {color:数值;}?7 阴影颜色 {text-shadow:16位色值}?8 字体行高?? {line-height:数值|inherit|normal;}?9 字间距?? {letter-spacing:数值|inherit|normal}?10 单词间距 {word-spacing:数值|inherit|normal}?11 字体变形 {font-variant:inherit|normal|small-cps }??12 英文转换 {text-transform:inherit|none|capitalize|uppercase|lowercase}?13 字体变形 {font-size-adjust:inherit|none}??14 字体{font-stretch:condensed|expanded|extra-condensed|extra-expanded|inherit|narrower|normal| semi-condensed|semi-expanded|ultra-condensed|ultra-expanded|wider}?? 文本样式(Text Style)?序号中文说明标记语法?1 行间距 {line-height:数值|inherit|normal;}??2 文本修饰{text-decoration:inherit|none|underline|overline|line-through|blink}?3 段首空格?? {text-indent:数值|inherit}?4 水平对齐 {text-align:left|right|center|justify}??5 垂直对齐{vertical-align:inherit|top|bottom|text-top|text-bottom|baseline|middle|sub|su per}??6 书写方式 {writing-mode:lr-tb|tb-rl}??背景样式?序号中文说明标记语法?1 背景颜色 {background-color:数值}?2 背景图片 {background-image: url(URL)|none}?3 背景重复 {background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y}?4 背景固定 {background-attachment:fixed|scroll}?5 背景定位 {background-position:数值|top|bottom|left|right|center}?6 背影样式 {background:背景颜色|背景图象|背景重复|背景附件|背景位置}?框架样式(Box Style)??序号中文说明标记语法?1 边界留白 {margin:margin-top margin-right margin-bottom margin-left}?2 补白 {padding:padding-top padding-right padding-bottom padding-left}?3 边框宽度{border-width:border-top-width border-right-width border-bottom-width border-left-width}宽度值: thin|medium|thick|数值?4 边框颜色 {border-color:数值数值数值数值} 数值:分别代表top、right、bottom、left颜色值?5 边框风格{border-style:none|hidden|inherit|dashed|solid|double|inset|outset|ridge|groov e}?6 边框 {border:border-width border-style color}??? 上边框 {border-top:border-top-width border-style color}??? 右边框 {border-right:border-right-width border-style color}??? 下边框 {border-bottom:border-bottom-width border-style color}??? 左边框 {border-left:border-left-width border-style color}?7 宽度 {width:长度|百分比| auto}?8 高度 {height:数值|auto}?9 漂浮 {float:left|right|none}?10 清除 {clear:none|left|right|both}?分类列表?序号中文说明标记语法?1 控制显示 {display:none|block|inline|list-item}?2 控制空白 {white-space:normal|pre|nowarp}?3 符号列表{list-style-type:disc|circle|square|decimal|lower-roman|upper-roman|lower-alph a|upper-alpha|none}?4 图形列表 {list-style-image:URL}?5 位置列表 {list-style-position:inside|outside}?6 目录列表 {list-style:目录样式类型|目录样式位置|url}?7 鼠标形状{cursor:hand|crosshair|text|wait|move|help|e-resize|nw-resize|w-resize|s-resiz e|se-resize|sw-resize}。
CSS列表属性(list-style)

CSS列表样式属性列表样式类型属性(list-style-type)这个属性用来设定列表项标记(list-item marker)的类型。
有以下值:∙disc (缺省值,黑圆点)∙circle (空心圆点)∙square (小黑方块)∙decimal (数字排序)∙lower-roman (小写罗马字排序)∙upper-roman (大写罗马字排序)∙lower-alpha (小写字母排序)∙upper-alpha (大写字母排序)∙none (无列表项标记)以disc,circle,square,none作为列表项标记的列表示例<html><head><title>列表样式类型list-style-type</title><style type="text/css">ul.disc {list-style-type: disc}ul.circle {list-style-type: circle}ul.square {list-style-type: square}ul.none {list-style-type: none}</style></head><body><ul class="disc"><li>肉类</li><li>蔬菜</li><li>水果</li></ul><ul class="circle"><li>肉类</li><li>蔬菜</li><li>水果</li></ul><ul class="square"><li>肉类</li><li>蔬菜</li><li>水果</li></ul><ul class="none"><li>肉类</li><li>蔬菜</li><li>水果</li></ul></body></html>以decimal,lower-roman,upper-roman,lower-alpha,upper-alpha作为列表项标记的列表示例<html><head><title>列表样式类型list-style-type</title><style type="text/css">ol.decimal {list-style-type: decimal}ol.lower-roman {list-style-type: lower-roman}ol.upper-roman {list-style-type: upper-roman}ol.lower-alpha {list-style-type: lower-alpha}ol.upper-alpha {list-style-type: upper-alpha}</style></head><body><ol class="decimal"><li>肉类</li><li>蔬菜</li><li>水果</li></ol><ol class="lower-roman"><li>肉类</li><li>蔬菜</li><li>水果</li></ol><ol class="upper-roman"><li>肉类</li><li>蔬菜</li><li>水果</li></ol><ol class="lower-alpha"><li>肉类</li><li>蔬菜</li><li>水果</li></ol><ol class="upper-alpha"><li>肉类</li><li>蔬菜</li><li>水果</li></ol></body></html>列表样式位置属性(list-style-position)列表样式位置属性(list-style-position)有两个值:∙outside (以列表项内容为准对齐)∙inside (以列表项标记为准对齐)演示示例<html><title>列表样式位置list-style-position</title><head><style type="text/css">.u1 {list-style-position:outside}.u2 {list-style-position:inside}</style></head><body><ul class ="u1"><li>芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐</li><li>木子美</li><li>竹影青瞳</li><li>流氓燕</li></ul><ul class ="u2"><li>芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐芙蓉姐姐</li><li>木子美</li><li>竹影青瞳</li><li>流氓燕</li></ul></html>列表样式图片属性(list-style-image)列表项标记可以用图片来表示,用列表样式图片属性(list-style-image)来设定图片。
css属性大全

css属性大全CSS属性大全。
CSS(Cascading Style Sheets)是一种用来为网页添加样式和布局的样式表语言。
它可以控制网页的字体、颜色、间距、边框、背景等各种样式,是网页设计中不可或缺的一部分。
在这篇文档中,我们将详细介绍CSS中的各种属性,帮助您更好地掌握CSS的应用。
1. 字体属性。
字体属性用于设置网页中文本的字体样式、大小、粗细等。
常用的属性包括font-family(设置字体系列)、font-size(设置字体大小)、font-weight(设置字体粗细)、font-style(设置字体样式)等。
2. 文本属性。
文本属性用于设置文本的对齐方式、行高、间距等。
常用的属性包括text-align(设置文本对齐方式)、line-height(设置行高)、letter-spacing(设置字符间距)、word-spacing(设置单词间距)等。
3. 背景属性。
背景属性用于设置网页元素的背景样式。
常用的属性包括background-color(设置背景颜色)、background-image(设置背景图片)、background-repeat(设置背景重复方式)、background-position(设置背景位置)等。
4. 边框属性。
边框属性用于设置网页元素的边框样式。
常用的属性包括border-width(设置边框宽度)、border-style(设置边框样式)、border-color(设置边框颜色)、border-radius(设置边框圆角)等。
5. 盒模型属性。
盒模型属性用于设置网页元素的尺寸、内边距、外边距等。
常用的属性包括width(设置元素宽度)、height(设置元素高度)、padding(设置内边距)、margin(设置外边距)等。
6. 定位属性。
定位属性用于设置网页元素的位置。
常用的属性包括position(设置定位方式)、top(设置元素顶部位置)、left(设置元素左侧位置)、z-index(设置元素层级)等。
常用CSS标签及属性对照表

常用的CSS 标签标记属性翻译注释1、字体属性(type)font-family (使用什么字体)font-style(字体的样式,是否斜体):normal/italic/obliquefont-variant (字体大小写):normal/small-capsfont-weight (字体的粗细):normal/bold/bolder/lithterfont-size(字体的大小):absolute-size/relative-size/length/percentage2、颜色和背景属性(backgroud)color(定义前景色,例如:p{color:red})background-color ( 定义背景色)background-imag e(定义背景图片)background-repeat( 背景图案重复方式):repeat-x/repeat-y/no-repeatbackground-attachment (设置滚动):scroll( 滚动)/fixe( 固定的)background-position( 背景图案的初始位置):percentage/length/top/left/right/bottom3、文本属性:(block)定义间距:word-spacing(单词之间的距离)letter-spacing(字母之间的距离)text-decoration (定义文字的装饰):nore/underline/overline/line-through/blinkvertical-align ( 元素在垂直方向的位置) :baseline( 基线)/sub/super/top/text-top/middle/bottom/text-bottomtext-transform ( 使文本转换为其它方式) :capitalize( 大写)/uppercase(首字母大写)/lowercase( 小写)/nonetext-align (文字的对齐):left/right/center/justifytext-indent( 文本的首行缩进)length/percentageline-height( 文本的行高):normal/numbet/lenggth/percentage( 百分比)定义超链接:a:link {color:green;text-decoration:nore}( 未访问过的状态) a:visited {color:ren;text-decoration:underline;16pt}( 访问过的状态)a:hover {color:blue;text-decoration:underline;16pt}( 鼠标激活的状态)4、块属性(block)边距属性:margin-top (设置顶边距)margin-right( 设置右边距)margin-bottom (设置底边距)margin-left (设置左边距)填充距属性:padding-top 设置顶端真充距)padding-right 设置顶端真充距)padding-bottom 设置顶端真充距)padding-left 设置顶端真充距)5、边框属性(border )border-top-width (顶端边框宽度)border-right-width (右端边框宽度)border-bottom-width (底端边框宽度)border-left-width (d 左边框宽度)border-width (一次定义边框宽度)border-color (设置边框颜色)border-style(设置边框样式)border-top (一次定义顶端各种属性)border-right (一次定义右端各种属性)border-bottom (一次定义底端各种属性)border-left (一次定义左端各种属性)图文混排:width (定义宽度属性)height(定义高度属性)float (文字环绕在一个元素的四周)clear(定义某一边是否有环绕)6、项目符号和编号(list)display(定义是否显示)white-space(怎样处理空白部分):normal/pre/nowraplist-style-type(在列表前加项目符号)disc( 圆点)/circle( 圈)/square(方形)/decima l (阿拉伯数字)/lower-roman ( 小写罗马数字)/upper-roman ( 大写罗马数字) /lower-alpha (小写英文字母)/upper-alpha (大写英文字母)/norelist-style-tyle(在列表前加图案): <url>/nonelist-style-position(决定列表项中第二行的起邕位置)list-style( 一次性定义所有属性)7、定位(positioning)即层属性Type:设定对象的定位方式。
(完整word版)Style常用属性

设置元素背景图片
Background—repeat
设置元素背景平铺效果
Background—attachment
设置元素背景滚动效果
Background-position
设置元素背景图片位置
文本属性
属性名
描述
text—decoration
设置文本内容的修饰
text—align
设置元素的上外填充距离
Margin—right
设置元素的右外填充距离
Margin-bottom
设置元素的下外填充距离
其他属性
属性名
描述
Position
设置元素位置(定位)
Left
设置元素的x轴坐标
Top
设置元素的y轴坐标
Right
设置元素右侧的x轴坐标
Bottom
设置元素底边y轴坐标
Z—index
设置元素的层叠位置
设置元素的内填充距离
padding—left
设置元素的左内填充离
Padding—top
设置元素的上内填充距离
Padding—right
设置元素的右内填充距离
Padding—bottom
设置元素的下内填充距离
Margin
设置元素的外填充距离
Margin—left
设置元素的左外填充距离
Margin—top
Style
常用属性
属性名
描述
Color
设置元素的前景色(字体颜色)
Width
设置元素宽度
Height
设置元素高度
line-height
设置行间距
vertical-align
常用的CSS标签标记属性翻译注释

常用的CSS标签标记属性翻译注释这里收藏一些编写网页的常用属性,便于以后编写网页查询。
" "这里收藏一些编写网页的常用属性,便于以后编写网页查询。
1、字体属性(type)font-family(使用什么字体)font-style(字体的样式,是否斜体):normal/italic/obliquefont-variant(字体大小写):normal/small-capsfont-weight(字体的粗细):normal/bold/bolder/lithterfont-size(字体的大小):absolute-size/relative-size/length/percentage2、颜色和背景属性(backgroud)color(定义前景色,例如:p{color:red})background-color(定义背景色)background-image(定义背景图片)background-repeat(背景图案重复方式):repeat-x/repeat-y/no-repeatbackground-attachment(设置滚动):scroll(滚动)/fixe(固定的)background-position(背景图案的初始位置):percentage/length/top/left/right/bottom3、文本属性:(block)定义间距:word-spacing(单词之间的距离)letter-spacing(字母之间的距离)text-decoration(定义文字的装饰):nore/underline/overline/line-through/blinkvertical-align(元素在垂直方向的位置):baseline(基线)/sub/super/top/text-top/middle/bottom/text-bottomtext-transform(使文本转换为其它方式):capitalize(大写)/uppercase(首字母大写)/lowercase(小写)/nonetext-align(文字的对齐):left/right/center/justifytext-indent(文本的首行缩进)length/percentageline-height(文本的行高):normal/numbet/lenggth/percentage(百分比)定义超链接:a:link {color:green;text-decoration:nore}(未访问过的状态)a:visited {color:ren;text-decoration:underline;16pt}(访问过的状态)a:hover {color:blue;text-decoration:underline;16pt}(鼠标激活的状态)4、块属性(block)边距属性:margin-top(设置顶边距)margin-right(设置右边距)margin-bottom(设置底边距)margin-left(设置左边距)填充距属性:padding-top设置顶端真充距)padding-right设置顶端真充距)padding-bottom设置顶端真充距)padding-left设置顶端真充距)5、边框属性(border)border-top-width(顶端边框宽度)border-right-width(右端边框宽度)border-bottom-width(底端边框宽度)border-left-width(d左边框宽度)border-width(一次定义边框宽度)border-color(设置边框颜色)border-style(设置边框样式)border-top(一次定义顶端各种属性)border-right(一次定义右端各种属性)border-bottom(一次定义底端各种属性)border-left(一次定义左端各种属性)图文混排:width(定义宽度属性)height(定义高度属性)float(文字环绕在一个元素的四周)clear(定义某一边是否有环绕)6、项目符号和编号(list)display(定义是否显示)white-space(怎样处理空白部分):normal/pre/nowraplist-style-type(在列表前加项目符号)disc(圆点)/circle(圈)/square(方形)/decimal(阿拉伯数字)/lower-roman(小写罗马数字)/upper-roman(大写罗马数字)/lower-alpha(小写英文字母)/upper-alpha(大写英文字母)/norelist-style-tyle(在列表前加图案):<url>/nonelist-style-position(决定列表项中第二行的起邕位置)list-style(一次性定义所有属性)7、定位(positioning)即层属性Type:设定对象的定位方式。
CSS属性大全

10 单词间距 {word-spacing:数值|inherit|normal}
11 字体变形 {font-variant:inherit|normal|small-cps }
12 英文转换 {text-transform:inherit|none|capitalize|uppercase|lowercase}
5 位置列表 {list-style-position:inside|outside}
6 目录列表 {list-style:目录样式类型|目录样式位置|url}
7 鼠标形状 {cursor:hand|crosshair|text|wait|move|help|e-resize|nw-resize|w-resize|s-resize|se-resize|sw-resize}
4 背景固定 {background-attachment:fixed|scroll}
5 背景定位 {background-position:数值|top|bottom|left|right|center}
6 背影样式 {background:背景颜色|背景图象|背景重复|背景附件|背景位置}
5 边框风格 {border-style:none|hidden|inherit|dashed|solid|double|inset|outset|ridge|groove}
6 边 框 {border:border-width border-style color}
上 边 框 {border-top:border-top-width border-style color}
style样式写法

style样式写法CSS(层叠样式表)是一种用于描述文档样式(包括布局、字体、颜色等)的样式表语言。
以下是一些基本的CSS 样式写法:### 1. 内联样式(Inline Styles)内联样式是直接写在HTML 元素内部的样式,使用`style` 属性。
```html<p style="color: red; font-size: 16px;">这是一段红色的文字,字体大小为16px。
</p>```### 2. 内部样式(Internal Styles)内部样式是写在HTML 文档的`<style>` 标签内的样式。
```html<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Internal Styles</title><style>p {color: blue;font-size: 18px;}</style></head><body><p>This is a blue text with a font size of 18px.</p></body></html>```### 3. 外部样式(External Styles)外部样式是将样式规则写在独立的CSS 文件中,然后通过链接引入HTML 文档。
**styles.css**```css/* styles.css */p {color: green;font-size: 20px;}```**index.html**```html<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>External Styles</title><link rel="stylesheet" href="styles.css"></head><body><p>This is a green text with a font size of 20px.</p> </body></html>```### 4. CSS 选择器CSS 选择器用于选择要应用样式的HTML 元素。
CSS属性大全

CSS属性大全一、颜色和背景属性1、color 颜色属性该CSS属性用来设定前景色,通常用于设定元素的字体颜色。
2、background 背景属性该CSS属性是一个复合属性,是5个背景属性 background-color, background-image, background-repeat, background-attachment 和background-position 的综合快捷写法。
3、background-attachment 背景附着属性该CSS属性用来设定背景图片是否随文档一起滚动。
4、background-color 背景颜色属性该CSS属性用来设定对象的背景颜色。
5、background-image 背景图片属性该CSS属性用来设定元素的背景图片。
6、background-position 背景位置属性该CSS属性用来设定背景图片的位置。
7、background-repeat 背景重复属性该CSS属性用来设定背景图片是否重复平铺。
二、字体属性(Font properties)1、font 字体属性该CSS属性是各种字体属性的一种快捷的综合写法。
2、font-family 字体名称属性该CSS属性用来设定所用字体的名称。
3、font-size 字体大小属性该CSS属性用来设定字体的大小。
4、font-style 字体风格属性设定字体风格是斜体,正常,或是倾斜。
5、font-variant 字体变量属性该CSS属性用来设定字体是正常显示,还是以小型大写字母显示。
6、font-weight 字体浓淡属性该CSS属性用来设定字体的浓淡程度。
三、文本属性(Text properties)1、direction 方向属性该CSS属性用来设定文本的书写顺序。
2、letter-spacing 字符间距属性该CSS属性用来设定字符间距。
3、line-height 行高属性该CSS属性用来设定行间距。
.fontstyle的用法

.fontstyle的用法
.fontstyle是一个CSS属性,用于设置文本的字体样式。
该属性可以接受以下几个值:
1. normal,默认值,表示使用标准的字体样式。
2. italic,斜体字体样式,使文本倾斜显示。
3. oblique,与italic类似,也是使文本倾斜显示,但有些浏览器对这两者的处理略有不同。
你可以将.fontstyle属性应用于CSS样式表中的文本元素,例如段落、标题、按钮等,以改变它们的字体样式。
例如:
css.
p {。
font-style: italic;
}。
上面的代码将会使所有段落文本显示为斜体。
需要注意的是,.fontstyle属性并不能直接改变文本的字体,而是改变文本的样式,如果需要改变字体,可以使用font-family 属性。
此外,.fontstyle属性也可以与其他字体相关的属性(如
font-size、font-weight等)一起使用,以实现更精细的文本样式控制。
当然,最终效果还是取决于浏览器和操作系统的支持情况。
总的来说,.fontstyle属性是CSS中用来控制文本字体样式的一个重要属性,可以通过它来改变文本的外观,使得网页内容更加丰富多样。
style属性

以下是CSS样式属性字体属性如下:font-family:用于设置字体名称,可以设置多个字体名称,用逗号隔开font-size:设置字体大小。
绝对大小设置的值为xx-small,x-small,medium,large,x-large、xx-large。
相对大小设置:larger,smaller,绝对单位:px,mm,cm,in,pt,pc(这些大小不会随浏览器大小改变而改变)相对单位有:em(是原始显示的二倍),ex(当前的字体是原始字体大小的3倍),%(设置字体的百分比)。
font-style:设置文字显示方式text-decoration:设置文本的上滑线、下滑线、中划线font-weight:用于指定粗体字的大小。
font-variant:显示区域内的所有字母都用大写显示text-transform:可以设置区域内的英文单词的每个首字母大小,或者把所有的字母大写或者小写color:字体颜色有背景属性background-color:背景颜色background-image:背景图像background-repeat:设置背景图片的显示方式,值为:on-repeat(背景图片只显示一次)、repeat(表示在背景上水平和垂直方向上重复平铺图像)、repeat-x(表示水平重复平铺铺背景图像)repeat-y(表示垂直重复平补背景图像)background-attachment:确定背景图片是否更具内容的滚动儿滚动;他的设置值:fixe(表示背景图片固定),scroll(表示背景图片随文字的滚动而滚动)background-position:指定背景图像的水平位置和垂直位置,设置值为:水平设置的值有:left、center、right、或、20px(设置一个值),垂直位子的取值有:top、center,bottombackground:上面各种的简写文本属性如下:word-spacing:设置单词之间的间距letter-spacing:用来设置每个字符之间的间距vertical-align:文本的垂直对齐方式:他的取值有:sub(下标)、super(上标)top(与顶对齐)、middle(中间对齐)、bottom(与低端对齐),取相对于元素的百分比text-align:用于设置文本的水平对齐方式,设置的值有:left,right,center,justifytext-indent:设置文本第一行的缩进值white-space:处理文本中的空白字符,设置的值有:normal(默认的把所有的空白压缩成一个空格)、pre(空白原样输出)、nowrap:表示只有遇到<br/>标签时才进行换行,否则一直不换行元素位置设定属性Position:用来设定元素的定位方式,设置的值有:absolute(元素的决定定位)、relative(相对定位)、static(通用定位方法)left:设置元素左边的水平位置top:设置元素顶部的位置width:设置元素的宽度height:设置元素的高度z-index:设置元素堆叠的所属层位。
react css 参数

react css 参数React CSS 参数在React开发中,CSS参数是一个重要的概念。
React使用内联CSS 来处理组件的样式,这为开发者提供了更加灵活和可维护的样式控制方式。
本文将介绍React中常用的CSS参数,帮助读者更好地理解和应用这些参数。
1. className在React中,className是最常用的CSS参数之一。
通过className 属性,可以给组件添加一个或多个CSS类,从而控制组件的样式。
例如,可以通过className来定义组件的背景颜色、字体大小、边框样式等。
className属性的值可以是一个字符串或一个动态生成的字符串。
2. stylestyle是React中另一个常用的CSS参数。
通过style属性,可以直接在组件内部定义样式。
style属性的值是一个包含CSS属性和对应值的JavaScript对象。
例如,可以通过style属性来设置组件的颜色、宽度、高度等。
需要注意的是,style属性中的属性名需要使用驼峰命名法,而不是CSS中的短横线命名法。
3. inlineStyleinlineStyle是React中一种特殊的CSS参数。
通过inlineStyle 属性,可以直接在组件内部定义内联样式。
与style属性类似,inlineStyle属性的值也是一个包含CSS属性和对应值的JavaScript对象。
与style不同的是,inlineStyle属性的值是一个常量,而不是一个动态生成的值。
这种方式适用于在组件中使用固定的样式。
4. CSS模块化CSS模块化是指将CSS样式与组件进行关联,使得样式只在特定的组件内部生效。
在React中,可以使用CSS Modules来实现CSS模块化。
通过在CSS文件中使用模块化的命名规则,并在组件中导入CSS文件,可以确保组件的样式不会与其他组件的样式发生冲突。
CSS模块化使得样式的维护更加简单,同时也提高了代码的可读性和可维护性。
CSS列表样式属性list-style介绍

CSS列表样式属性list-style介绍
我们为大家收集整理了关于CSS列表样式属性list-style,以方便大家参考。
● list-style
定义:用于在一个声明中设置一个列表的所有属性的简写属性,该属性是一个简写属性,涵盖了所有其他列表样式属性,仅作用于具有display值等于list-item的对象(如li对象)。
相关: list-style-image || list-style-position || list-style-type
● list-style-image
说明: 设置或检索作为对象的列表项标记的图像。
若此属性值为none 或指定url 地址的图片不能被显示时,list-style-type 属性将发生作用。
取值:
none : 默认值。
不指定图像
url ( url ) : 使用绝对或相对url 地址指定图像。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
CSS style属性大全显示:标签属性/属性行为集合事件滤镜方法对象样式一、标签属性属性描述ALIGN align 设置或获取表格排列。
ALLOWTRANSPARENCY allowTransparency 设置或获取对象是否可为透明。
APPLICATION APPLICATION 表明对象的内容是否为HTML 应用程序(HTA),以便免除浏览器安全模式。
ATOMICSELECTION 指定元素及其内容是否可以一不可见单位统一选择。
BEGIN begin 设置或获取时间线在该元素上播放前的延迟时间。
BORDER border 设置或获取框架间的空间,包括3D 边框。
canHaveChildren 获取表明对象是否可以包含子对象的值。
canHaveHTML 获取表明对象是否可以包含丰富的HTML 标签的值。
CLASS className 设置或获取对象的类。
contentWindow 获取指定的frame 或iframe 的window 对象。
DA TAFLD dataFld 设置或获取由dataSrc 属性指定的绑定到指定对象的给定数据源的字段。
DA TASRC dataSrc 设置或获取用于数据绑定的数据源。
disabled 获取表明用户是否可与该对象交互的值。
END end 设置或获取表明元素结束时间的值,或者元素设置为重复的简单持续终止时间。
firstChild 获取对象的childNodes 集合的第一个子对象的引用。
FRAMEBORDER frameBorder 设置或获取是否显示框架的边框。
hasMedia 获取一个表明元素是否为HTML+TIME 媒体元素的Boolean 值。
HEIGHT height 设置或获取对象的高度。
HIDEFOCUS hideFocus 设置或获取表明对象是否显式标明焦点的值。
HSPACE hspace 设置或获取对象的水平边距。
ID id 获取标识对象的字符串。
innerText 设置或获取位于对象起始和结束标签内的文本。
isContentEditable 获取表明用户是否可编辑对象内容的值。
isDisabled 获取表明用户是否可与该对象交互的值。
isMultiLine 获取表明对象的内容是包含一行还是多行的值。
isTextEdit 获取是否可使用该对象创建一个TextRange 对象。
LANG lang 设置或获取要使用的语言。
LANGUAGE language 设置或获取当前脚本编写用的语言。
lastChild 获取该对象childNodes 集合中最后一个子对象的引用。
longDesc 设置或获取对象长描述的统一资源标识符(URI)。
MARGINHEIGHT marginHeight 设置或获取显示框架中文本之前的上下边距高度。
MARGINWIDTH marginWidth 设置或获取显示框架中文本之前的左右边距宽度。
NAME name 设置或获取框架的名称。
nextSibling 获取对此对象的下一个兄弟对象的引用。
nodeName 获取特定结点类型的名称。
nodeType 获取所需结点的类型。
nodeV alue 设置或获取结点的值。
offsetHeight 获取对象相对于版面或由父坐标offsetParent 属性指定的父坐标的高度。
offsetLeft 获取对象相对于版面或由offsetParent 属性指定的父坐标的计算左侧位置。
offsetParent 获取定义对象offsetTop 和offsetLeft 属性的容器对象的引用。
offsetTop 获取对象相对于版面或由offsetTop 属性指定的父坐标的计算顶端位置。
offsetWidth 获取对象相对于版面或由父坐标offsetParent 属性指定的父坐标的宽度。
onOffBehavior 获取表明指定的Microsoft® DirectAnimation® 行为是否正在运行的对象。
outerHTML 设置或获取对象及其内容的HTML 形式。
outerText 设置或获取对象的文本。
ownerDocument 设置或获取结点关联的document 对象。
parentElement 获取对象层次中的父对象。
parentNode 获取文档层次中的父对象。
parentTextEdit 获取文档层次中可用于创建包含原始对象的TextRange 的容器对象。
previousSibling 获取对此对象的上一个兄弟对象的引用。
readyState 获取对象的当前状态。
readyState 获取表明对象当前状态的值。
recordNumber 获取数据集中生成对象的原始记录。
scopeName 获取为该元素定义的命名空间。
SCROLLING scrolling 设置或获取框架是否可被滚动。
SECURITY SECURITY 获取表明frame 或iframe 的源文件是否应用了特定的安全限制的值。
sourceIndex 获取对象在源序中的依次位置,即对象出现在document 的all 集合中的顺序。
SRC src 设置或获取要由对象装入的URL。
STYLE 为该设置元素设置内嵌样式。
SYNCMASTER syncMaster 设置或获取时间容器是否必须在此元素上同步回放。
SYSTEMBITRATE 获取系统中大约可用带宽的bps。
SYSTEMCAPTION 表明是否要显示文本来代替演示的的音频部分。
SYSTEMLANGUAGE 表明是否在用户计算机上的选项设置中选中了给定语言。
SYSTEMOVERDUBORSUBTITLE 指定针对那些正在观看演示但对被播放的音频所使用的语言并不熟悉的用户来说是否要渲染配音或字幕。
TABINDEX tabIndex 设置或获取定义对象的Tab 顺序的索引。
tagName 获取对象的标签名称。
tagUrn 设置或获取在命名空间声明中指定的统一资源名称(URN)。
TIMECONTAINER timeContainer 设置或获取与元素关联的时间线类型。
TITLE title 设置或获取对象的咨询信息(工具提示)。
uniqueID 获取为对象自动生成的唯一标识符。
UNSELECTABLE 指定该元素不可被选中。
VSPACE vspace 设置或获取对象的垂直边距。
WIDTH width 设置或获取对象的宽度。
二、标签属性/属性行为行为描述clientCaps 提供关于Internet Explorer 支持的特性的信息,以及提供即用即装的方法。
download 下载文件并在下载完成后通知一个指定的回调函数。
homePage 包含关于用户主页的信息。
time 为HTML 元素提供一个活动的时间线。
time2 为HTML 元素或一组元素提供一个活动的时间线。
集合集合描述all 返回对象所包含的元素集合的引用。
attributes 获取对象标签属性的集合。
behaviorUrns 返回标识附加到该元素行为的统一资源名称(URN)字符串的集合。
childNodes 获取作为指定对象直接后代的HTML 元素和TextNode 对象的集合。
children 获取作为对象直接后代的DHTML 对象的集合。
事件事件描述onactivate 当对象设置为活动元素时触发。
onafterupdate 当成功更新数据源对象中的关联对象后在数据绑定对象上触发。
onbeforedeactivate 在activeElement 从当前对象变为父文档其它对象之前立即触发。
onbeforeupdate 当成功更新数据源对象中的关联对象前在数据绑定对象上触发。
onblur 在对象失去输入焦点时触发。
oncontrolselect 当用户将要对该对象制作一个控件选中区时触发。
ondeactivate 当activeElement 从当前对象变为父文档其它对象时触发。
onerrorupdate 更新数据源对象中的关联数据出错时在数据绑定对象上触发。
onfocus 当对象获得焦点时触发。
onload 在浏览器完成对象的装载后立即触发。
onmove 当对象移动时触发。
onmoveend 当对象停止移动时触发。
onmovestart 当对象开始移动时触发。
onreadystatechange 当对象状态变更时触发。
onresizeend 当用户更改完控件选中区中对象的尺寸时触发。
onresizestart 当用户开始更改控件选中区中对象的尺寸时触发。
ontimeerror 当特定时间错误发生时无条件触发,通常由将属性设置为无效值导致。
滤镜滤镜属性描述Alpha 调整对象内容的不透明度。
AlphaImageLoader 在对象的边界和对象背景到内容之间显示图像,可选剪裁或缩放图像大小。
当装入便携网络图像(PNG)时,从0 到100% 的透明度都是支持的。
Barn 以开门或关门的运动方式显示对象的新内容。
BasicImage 调整对象内容的颜色处理、图像旋转或不透明度。
BlendTrans 以渐隐原始内容的形式显示对象的新内容。
Blinds 以打开或关闭盲点的运动方式显示对象的新内容。
Blur 模糊对象的内容以便使其看起来失去焦点。
CheckerBoard 以揭开覆盖在原始内容上的棋盘的形式显示对象的新内容。
Chroma 将对象内容的指定颜色显示为透明。
Compositor 以新旧内容逻辑颜色组合的形式显示对象的新内容。
每个版本的颜色和alpha 值都会被计算用来决定输出图像的最终颜色。
DropShadow 创建对象内容的实体阴影,偏移量位于指定方向。
这将使得内容看起来是浮动的因此会产生阴影。
Emboss 使用灰度值对对象以浮雕纹理显示。
Engrave 使用灰度值对对象以雕刻纹理显示。
Fade 以渐隐原始内容的形式显示对象的新内容。
FlipH 以沿水平方向翻转的形式显示对象内容。
FlipV 以沿垂直方向翻转的形式显示对象内容。
Glow 在对象边缘外侧添加光晕以便使其看起来像发光的样子。
Gradient 在对象的背景和内容之间显示一个渐变色彩的表面。
GradientWipe 以在原有内容上覆盖渐变带的形式显示对象的新内容。
Gray 以灰度显示对象内容。
ICMFilter 根据图像颜色管理(ICM)配置文件转换对象的彩色内容。
这将允许指定内容的显示效果得以改善,或者在打印机或监视器等硬件设备上模拟显示。
Inset 以对角线方向显示对象的新内容。
Invert 反转对象内容的色调、饱和度和亮度。
Iris 以彩虹效果显示对象的新内容,这与照相机光圈打开相似。
Light 在对象的内容上创建灯光效果。
MaskFilter 将对象内容的透明像素显示为彩色遮罩,将非透明像素显示为透明。