头闻号

新郑市永发化工有限公司

硅氧化物

首页 > 新闻中心 > 科技常识:常用css样式属性大全(中文注释)
科技常识:常用css样式属性大全(中文注释)
发布时间:2023-02-01 09:56:01        浏览次数:8        返回列表

今天小编跟大家讲解下有关常用css样式属性大全(中文注释) ,相信小伙伴们对这个话题应该有所关注吧,小编也收集到了有关常用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(/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; background-repeat : repeat-y; 指定背景位置background-position : 90% 90%; 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 border-top-width :1px border-top-style : solid其他框线样式solid dotted double groove ridge inset outset 七、CSS表单运用文字方块 按钮 复选框 选择钮 多行文字方块 下拉式菜单 选项1选项2八、CSS边界样式margin-top:10px; margin-right:10px; margin-bottom:10px; margin-left:10px;

九、CSS滤镜属性Filter:在样式中加上滤镜特效。由于此属性内容比较多 我们将到下一章单独对滤镜介绍。1.Alpha:设置透明度Alpha(Opacity=?, FinishOpacity=?, Style=?, StartX=?, StartY=?, FinishX=?, FinishY=?) Opacity:透明度级别 范围是0-100 0代表完全透明 100代表完全不透明。FinishOpacity:设置渐变的透明效果时 用来指定结束时的透明度 范围也是0 到 100。Style:设置渐变透明的样式 值为0代表统一形状、1代表线形、2代表放射状、3代表长方形。StartX和StartY:代表渐变透明效果的开始X和Y坐标。 FinishX和FinishY:代表渐变透明效果结束X和Y 的坐标。 2.BlendTrans:图像之间的淡入和淡出的效果 BlendTrans(Duration=?) Duration:淡入或淡出的时间。注意:这个滤镜必须配合JS建立图片序列 才能做出图片间效果。3.Blru:建立模糊效果 Blur(Add=?, Direction=?, Strength=?) Add:是否单方向模糊 此参数是一个布尔值 true(非0)或false(0)。 Direction:设置模糊的方向 其中0度代表垂直向上 然后每45度为一个单位。 Strength:代表模糊的象素值。 4.Chroma:把指定的颜色设置为透明Chroma(Color=?) Color:是指要设置为透明的颜色。5.DropShadow:建立阴影效果 DropShadow(Color=?, OffX=?, OffY=?, Positive=?) Color:指定阴影的颜色。OffX:指定阴影相对于元素在水平方向偏移量 整数。 OffY:指定阴影相对于元素在垂直方向偏移量 整数。 Positive:是一个布尔值 值为true(非0)时 表示为建立外阴影;为false(0) 表示为建立内阴影。 6.FlipH:将元素水平反转 7.FlipV:将元素垂直反转 8.Glow:建立外发光效效果 Glow(Color=?, Strength=?) Color:是指定发光的颜色。 Strength:光的强度 可以是1到255之间的任何整数 数字越大 发光的范围就越大。9.Gray:去掉图像的色彩 显示为黑白图象 10.  Invert:反转图象的颜色 产生类似底片的效果 11.  Light:放置光源的效果 可以用来模拟光源在物体上的投影效果 注意:此效果需要用JS设置光的位置和强度。12.  Mask:建立透明遮罩 Mask(Color=?) Color:设置底色 让对象遮住底色的部分透明。13.  RevealTrans:建立切换效果RevealTrans(Duration=?, Transition=?) Duration:是切换时间 以秒为单位。 Transtition:是切换方式 可设置为从0到23。注意:如果做页面间的切换效果 可以在<head>区加上一行代码:<meta http-equiv=Page-enter content=revealTrans(Transition=?,Duration=?) >。如果用在页面里的元素必须配合JS使用。14.  Shadow:建立另一种阴影效果 Shadow(Color=?, Direction=?) Color:是指阴影的颜色。 Direction:是设置投影的方向 0度代表垂直向上 然后每45度为一个单位。 15.  Wave:波纹效果 Wave(Add=?, Freq=?, LightStrength=?, Phase=?, Strength=?) Add:表示是否显示原对象 0表示不显示 非0表示要显示原对象。 Freq:设置波动的个数。LightStrength:设置波浪效果的光照强度 从0到100。0表示最弱 100表示最强。 Phase:波浪的起始相角。从0到100的百分数值。(例如:25相当于90度 而50相当于180度。) Strength:设置波浪摇摆的幅度。 16.  Xray:显现图片的轮廓 X光片效果 注意:在使用CSS滤镜时 必须使用在有区域的元素 比如表格 图片等。而文本 段落这样没有区域的元素不能使用CSS滤镜 对这样的元素我们可以设置元素的Height和Width样式或坐标来实现。"

来源:爱蒂网