fontSize這里Size的S需要大寫?另外font-size這樣寫沒有效果? 。。。我好像搞混了,,還有有些屬性后面是:有些是=,該怎么區分?。?/h1>
fontSize ?和font-size
還有屬性:“” ?和 ? ? ?屬性=“”
最近學的有點混。。。分不清了
怎么區分啊?有前輩總結下么。。?
fontSize ?和font-size
還有屬性:“” ?和 ? ? ?屬性=“”
最近學的有點混。。。分不清了
怎么區分啊?有前輩總結下么。。?
2015-04-05
應該區分一下js和css屬性是不一樣的。
fontSize是JS屬性。fontsize是CSS屬性。
CSS語法?(不區分大小寫) ? ?JavaScript語法?(區分大小寫)? ? ?
border ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?border? ? ?
border-bottom ? ? ? ? ? ? ? ? ? ?borderBottom? ? ?
border-bottom-color ? ? ? ? ?borderBottomColor? ? ?
border-bottom-style ? ? ? ? ? borderBottomStyle? ? ?
border-bottom-width ? ? ? ? borderBottomWidth? ? ?
border-color ? ? ? ? ? ? ? ? ? ? ? ?borderColor? ? ?
border-left ? ? ? ? ? ? ? ? ? ? ? ? ? borderLeft? ? ?
border-left-color ? ? ? ? ? ? ? ? borderLeftColor? ? ?
border-left-style ? ? ? ? ? ? ? ? ?borderLeftStyle? ? ?
border-left-width ? ? ? ? ? ? ? ?borderLeftWidth? ? ?
border-right ? ? ? ? ? ? ? ? ? ? ? ? borderRight? ? ?
border-right-color ? ? ? ? ? ? ? borderRightColor? ? ?
border-right-style ? ? ? ? ? ? ? ?borderRightStyle? ? ?
border-right-width ? ? ? ? ? ? ?borderRightWidth? ? ?
border-style ? ? ? ? ? ? ? ? ? ? ? ? borderStyle? ? ?
border-top ? ? ? ? ? ? ? ? ? ? ? ? ? borderTop? ? ?
border-top-color ? ? ? ? ? ? ? ? borderTopColor? ? ?
border-top-style ? ? ? ? ? ? ? ? ?borderTopStyle? ? ?
border-top-width ? ? ? ? ? ? ? ?borderTopWidth? ? ?
border-width ? ? ? ? ? ? ? ? ? ? ? borderWidth? ? ?
clear ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?clear? ? ?
float ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?floatStyle? ? ?
margin ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?margin? ? ?
margin-bottom ? ? ? ? ? ? ? ? ?marginBottom? ? ?
margin-left ? ? ? ? ? ? ? ? ? ? ? ?marginLeft? ? ?
margin-right ? ? ? ? ? ? ? ? ? ? marginRight? ? ?
margin-top ? ? ? ? ? ? ? ? ? ? ? marginTop ? ? ?
padding ? ? ? ? ? ? ? ? ? ? ? ? ? ?padding? ? ?
padding-bottom ? ? ? ? ? ? ?paddingBottom? ? ?
padding-left ? ? ? ? ? ? ? ? ? ? paddingLeft? ? ?
padding-right ? ? ? ? ? ? ? ? ? paddingRight? ? ?
padding-top ? ? ? ? ? ? ? ? ? ? paddingTop ? ?
background ? ? ? ? ? ? ? ? ? ? ? background? ? ?
background-attachment ? ?backgroundAttachment? ? ?
background-color ? ? ? ? ? ? ?backgroundColor? ? ?
background-image ? ? ? ? ? ? ?backgroundImage? ? ?
background-position ? ? ? ? ? ? ?backgroundPosition? ? ?
background-repeat ? ? ? ? ? ? ? ?backgroundRepeat? ? ?
color ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? color? ? ?
display ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? display? ? ?
list-style-type ? ? ? ? ? ? ? ? ? ? ? listStyleType? ? ?
list-style-image ? ? ? ? ? ? ? ? ? listStyleImage? ? ?
list-style-position ? ? ? ? ? ? ? ?listStylePosition? ? ?
list-style ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? listStyle? ? ?
white-space ? ? ? ? ? ? ? ? ? ? ? ? whiteSpace? ? ?
font ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? font? ? ?
font-family ? ? ? ? ? ? ? ? ? ? ? ? ?fontFamily? ? ?
font-size ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? fontSize? ? ?
font-style ? ? ? ? ? ? ? ? ? ? ? ? ? ? fontStyle? ? ?
font-variant ? ? ? ? ? ? ? ? ? ? ? ?fontVariant? ? ?
font-weight ? ? ? ? ? ? ? ? ? ? ? ? fontWeight? ? ?
letter-spacing ? ? ? ? ? ? ? ? ? ? letterSpacing? ? ?
line-break ? ? ? ? ? ? ? ? ? ? ? ? ?lineBreak? ? ?
line-height ? ? ? ? ??????????????????lineHeight? ? ?
text-align ????????????????????????????? ?textAlign? ? ?
text-decoration ? ?????????????????textDecoration? ? ?
text-indent ? ?????????????????????????textIndent? ? ?
text-justify ? ?????????????????????????textJustify? ? ?
text-transform ? ?????????????????????textTransform? ? ?
vertical-align ? ??????????????????????verticalAlign ? ?
(可能還有,自己積累下)
至于賦值,:是CSS賦值方式;JS的賦值方式是=。js用到:一般是三元運算符。
單雙引號的區別不大,作用可以視作一樣。
2018-06-28
vue中
這個怎么寫?
2015-04-05
還有什么時候用單引號包起來,什么時候用雙引號包起來?兩者大部分情況好像沒有區別啊?wiki里介紹的看了下還是不太明白,除了嵌套引號還有轉義時外都可以通用嗎?