css属性

  1. 字体属性:

{height:*px}   高度
{width:*px}    宽度

{font-size:*px}   字体大小
{color:red/rgb()/#4f4f4f}      字体颜色
{font-style:normal/italic/oblique} 字体倾斜
{font-variant:normal/smal-caps} 
{font-weight:normal/bold/bolder/lighter/integer}  字体粗细

{font-stretch:normal/ultra-condensed/extra-condensed/...} 拉伸字体

{font-family:}  字体家族


文本属性

{text-align:
left/right/center/justify/start/end/match}   文本对齐方式

{text-indent:*px}  文本缩进



文本装饰

{text-decoration-line:
none/underline/overline/line/line-through/blink}   线装饰器
{text-decoration-style:
solid/wavy/dotted/double/dashed}  线型
{text-shadow:none/length} 

背景和边框属性

{border:*px}   
{background-color:red}   背景颜色
{background-image:none/url(地址)} 背景图片

{background-position:center/left/right/top/bottom} 背景位置
{background-size:*px/auto/cover/contain}  背景大小

{background-repeat:repeat-x/...} 背景填充方式

边框border

{border-radium:}
{border-color:}
{border-width:}
{border-style:}
{border-shadow:}
{border-image:url()}
{border-}

display属性:把级标签换级(块,行)

{display:inline/block/inline-block}
posted @ 2024-06-06 16:38  zenopan  阅读(3)  评论(0编辑  收藏  举报