首页 > 语言 > JavaScript > 正文

css样式标签和js语法属性区别

2024-05-06 15:54:16
字体:
来源:转载
供稿:网友
css样式标签和js语法属性区别。需要的朋友可以过来参考下,希望对大家有所帮助

盒子标签和属性对照

CSS语法(不区分大小写)JavaScript语法(区分大小写)

borderborder

border-bottomborderBottom

border-bottom-colorborderBottomColor

border-bottom-styleborderBottomStyle

border-bottom-widthborderBottomWidth

border-colorborderColor

border-leftborderLeft

border-left-colorborderLeftColor

border-left-styleborderLeftStyle

border-left-widthborderLeftWidth

border-rightborderRight

border-right-colorborderRightColor

border-right-styleborderRightStyle

border-right-widthborderRightWidth

border-styleborderStyle

border-topborderTop

border-top-colorborderTopColor

border-top-styleborderTopStyle

border-top-widthborderTopWidth

border-widthborderWidth

clearclear

floatfloatStyle

marginmargin

margin-bottommarginBottom

margin-leftmarginLeft

margin-rightmarginRight

margin-topmarginTop

paddingpadding

padding-bottompaddingBottom

padding-leftpaddingLeft

padding-rightpaddingRight

padding-toppaddingTop

颜色和背景标签和属性对照

CSS 语法(不区分大小写)JavaScript 语法(区分大小写)

backgroundbackground

background-attachmentbackgroundAttachment

background-colorbackgroundColor

background-imagebackgroundImage

background-positionbackgroundPosition

background-repeatbackgroundRepeat

colorcolor

 

样式标签和属性对照

CSS语法(不区分大小写)JavaScript 语法(区分大小写)

displaydisplay

list-style-typelistStyleType

list-style-imagelistStyleImage

list-style-positionlistStylePosition

list-stylelistStyle

white-spacewhiteSpace

 

文字样式标签和属性对照

CSS 语法(不区分大小写)JavaScript 语法(区分大小写)

fontfont

font-familyfontFamily

font-sizefontSize

font-stylefontStyle

font-variantfontVariant

font-weightfontWeight

 

文本标签和属性对照

CSS 语法(不区分大小写)JavaScript 语法(区分大小写)

letter-spacingletterSpacing

line-breaklineBreak

line-heightlineHeight

text-aligntextAlign

text-decorationtextDecoration

text-indenttextIndent

text-justifytextJustify

text-transformtextTransform

vertical-align

verticalAlign 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选