In javascript writing, css attributes of style objects are often used. Many do not remember them, but they are very easy to remember. Basically, the "-" in CSS is converted into the javascript code, besides, pay attention to the float box label and attribute comparison CSS syntax (Case Insensitive) JavaScript syntax (case sensitive) border borderborder-bottom borderBottomborder-bottom-color borderBottomColorborder-bottom-style border-bottom-width border-color borderColorborder-left borderLeftborder-left-color border-left-style border-left-width border-right borderRightborder-right-color borderRightColorborder-right-style border-right-width border-style borderStyleborder-top borderTopborder-top-color borderTopColorborder-top-style border-top-width border -width borderWidthclear clearfloat between marginmargin-bottom marginBottommargin-left outer-right marginRightmargin-top outer paddingpadding-bottom outer-left outer-right outer-top paddingTop color and background labels and attributes compare CSS syntax (Case Insensitive) javaScript syntax (case sensitive) background backgroundbackground-attachment background-color backgroundColorbackground-image backgroundImagebackground-position backgroundPositionbackground-repeat backgroundRepeatcolor style labels and attributes compare CSS syntax (Case Insensitive) javaScript syntax (case sensitive) display displaylist-style-type listStyleTypelist-style-image listStyleImagelist-style-position listStylePositionlist-style listStylewhite-space whiteSpace text style labels and attributes compare with CSS syntax (Case Insensitive) javaScript syntax (case sensitive) font fontfont-family fontFamilyfont-size fontSizefont-style fontStylefont-variant fontVariantfont-weight fontWeight text labels and attributes are compared with www.2cto. comCSS syntax (Case Insensitive) JavaScript syntax (case sensitive) letter-spacing letterSpacingline-break character-height lineHeighttext-align character-decoration textDecorationtext-indent textIndenttext-justify textJustifytext-transform character-align character prompt: float attribute in CSS is an exception, because float is a reserved keyword of javascript, styleFloat is used in IE, while cssFloat is used in other browsers.