標籤:相對 name 填充 change 列表 混合 isp counter 顏色
下面這些屬性都是通過js的style來設定css。只是整理了一部分,詳細的可以參考相應的學習網站,不好的地方歡迎大家拍磚。
alignContent :"" 屬性在彈性容器內的各項沒有佔用交叉軸上所有可用的空間時對齊容器內的各項(垂直)
alignItems :"" align-items 屬性定義flex子項在flex容器的當前行的側軸(縱軸)方向上的對齊
alignSelf :"" align-self 屬性定義flex子項單獨在側軸(縱軸)方向上的對齊
alignmentBaseline :"" 指定了一個對象如何相對於它的父元素對齊。這個屬性指定了該元素的基準對齊到相應的父元素的基準。
all :"" 修改所有元素或其父元素的屬性為初始值:
animation :"" 動畫屬性
animationDelay :""
animationDirection :"" 動畫方向
animationDuration :"" 動畫時間長度
animationFillMode :"" 屬性規定動畫在播放之前或之後,其動畫效果是否可見
animationIterationCount :"" 屬性定義動畫的播放次數
animationName :"" animation-name 屬性為 @keyframes 動畫規定名稱。注釋:請始終規定 animation-duration 屬性,否則時間長度為 0,就不會播放動畫了。
animationPlayState :"" 屬性規定動畫正在運行還是暫停。
animationTimingFunction :"" 規定動畫的速度曲線。速度曲線定義動畫從一套 CSS樣式變為另一套所用的時間。速度曲線用於使變化更為平滑。
backfaceVisibility :"" 屬性定義當元素不面向螢幕時是否可見。如果在旋轉元素不希望看到其背面時,該屬性很有用。
background :"" 簡寫屬性在一個聲明中設定所有的背景屬性
backgroundAttachment :"" 規定背景映像是否固定或者隨著頁面的其餘部分滾動。
backgroundBlendMode :"" 屬性定義該元素的背景圖片,以及背景色如何混合。
backgroundClip :"" 屬性規定背景的繪製地區
backgroundColor :""
backgroundImage :""
backgroundOrigin :"" 規定 background-position 屬性相對於什麼位置來定位。如果背景映像的 background-attachment 屬性為 "fixed",則該屬性沒有效果。
backgroundPosition :"" 設定背景映像的起始位置
backgroundPositionX :"" 設定背景映像的水平位置
backgroundPositionY :"" 設定背景映像的垂直位置
backgroundRepeat :""
backgroundRepeatX :""
backgroundRepeatY :""
backgroundSize :"" 屬性規定背景映像的尺寸
baselineShift :"" 允許相對於父常值內容元素的dominant-baseline重定位dominant-baseline。該切換對象必須是一個下標或上標。
border :""
borderBottom :""
borderBottomColor :""
borderBottomLeftRadius :""
borderBottomRightRadius :""
borderBottomStyle :"" 設定元素下邊框的樣式。只有當這個值不是 none 時邊框才可能出現。
borderBottomWidth :""
borderCollapse :"" 屬性設定表格的邊框是否被合并為一個單一的邊框
borderColor :""
borderImage :""
borderImageOutset :"" 規定邊框映像超過邊框盒的量
borderImageRepeat :""
borderImageSlice :""
borderImageSource :"" 規定要使用的映像,代替 border-style 屬性中設定的邊框樣式
borderImageWidth :"" 規定映像邊框的寬度。
borderLeft :""
borderLeftColor :""
borderLeftStyle :""
borderLeftWidth :""
borderRadius :""
borderRight :""
borderRightColor :""
borderRightStyle :""
borderRightWidth :""
borderSpacing :"" 設定相鄰儲存格的邊框間的距離(僅用於“邊框分離”模式
borderStyle :"" 設定元素所有邊框的樣式,或者單獨地為各邊設定邊框樣式
borderTop :""
borderTopColor :""
borderTopLeftRadius :""
borderTopRightRadius :""
borderTopStyle :""
borderTopWidth :""
borderWidth :""
bottom :""
boxShadow :"" 向框添加一個或多個陰影
boxSizing :"" 允許您以特定的方式定義匹配某個地區的特定元素
breakAfter :"" 設定元素後的 page-breaking 行為。儘管可以用 always 強制放上分頁符,但是無法保證避免分頁符的插入,創作人員最多隻能要求使用者代理程式儘可能避免插入分頁。應用於:position 值為 relative 或 static 的非浮動區塊層級元素。
breakBefore :""
breakInside :""
bufferedRendering :""
captionSide :"" 設定表格標題的位置
clear :"" 規定元素的哪一側不允許其他浮動元素
clip :"" 剪裁絕對位置元素
clipPath :"" 裁剪路徑用於指定可繪製地區。從概念上來說,當繪製的圖形超出了裁剪路徑所指定的地區,超出地區的部分將不會被繪製。
clipRule :""
color :""
colorInterpolation :""
colorInterpolationFilters :""
colorRendering :""
columnCount :"" 規定元素應該被劃分的列數。
columnFill :"" 屬性規定如何填充列(是否進行協調)
columnGap :"" 將 div 元素中的文本分為三列,並規定列間 30 像素的間隔。
columnRule :"" 規定列之間的寬度、樣式和顏色
columnRuleColor :""
columnRuleStyle :""
columnRuleWidth :""
columnSpan :"" 規定元素應橫跨多少列
columnWidth :"" 規定列的寬度
columns :"" 屬性是一個簡寫屬性,用於設定列寬和列數
contain :""
content :"" 該屬性用於定義元素之前或之後放置的產生內容。預設地,這往往是行內內容,不過該內容建立的框類型可以用屬性 display 控制。
counterIncrement :"" 設定某個選取器每次出現的計數器增量。預設增量是 1
counterReset :"" 屬性設定某個選取器出現次數的計數器的值。預設為 0。
利用這個屬性,計數器可以設定或重設為任何值,可以是正值或負值。如果沒有提供 number,則預設為 0。
cssFloat :"" 也就是float屬性
cssText :"" innerHTML一樣,cssText很快捷且所有瀏覽器都支援。此外當大量操作樣式時,cssText只需一次reflow,提高了頁面渲染效能。
cursor :""
cx :""
cy :""
d :""
direction :""
display :""
dominantBaseline :""
emptyCells :"" 設定是否顯示表格中的空儲存格(僅用於“分離邊框”模式)。
fill :""
fillOpacity :"" 指定了填色的不透明度或當前對象的內容物的不透明度
fillRule :"" 屬性標識了用來確定路徑的哪一側算是形狀內部的演算法。對於簡單的形狀,非相交路徑,哪個地區算是“內部”很直觀明顯;然而對於較複雜的路徑,比如說一個路徑自身相交,或者一個子路徑包圍了另一個子路徑,這個“內部”的相交就不那麼明顯了。
filter :"" 屬性定義了元素(通常是<img>)的可視效果(例如:模糊與飽和度)。
flex :"" 屬性用於設定或檢索彈性盒模型對象的子項目如何分配空間
flexBasis :"" flex-basis 屬性用於設定或檢索彈性盒伸縮基準值。。
flexDirection :""
flexFlow :""
flexGrow :""
flexShrink :""
flexWrap :""
float :""
floodColor :""
floodOpacity :""
font :""
fontFamily :""
fontFeatureSettings :""
fontKerning :""
fontSize :"" 字型大小
fontStretch :"" 可對當前的 font-family 進行伸縮變形。
fontStyle :"" 屬性定義字型的風格
fontVariant :"" 設定小型大寫字母的字型顯示文本,這意味著所有的小寫字母均會被轉換為大寫,但是所有使用小型大寫字型的字母與其餘文本相比,其字型尺寸更小
fontVariantCaps :""
fontVariantLigatures :""
fontVariantNumeric :""
fontWeight :"" 設定文本的粗細
height :""
imageRendering :"" 屬性決定瀏覽器對縮放映像採取的縮放演算法.它適用於元素本身和有其他屬性的映像.它對非縮放映像沒有影響。
isolation :"" 是一個CSS3屬性,顧名思意是“隔離”,支援的值除了萬年不變的inherit外還包括auto和isolate.
justifyContent :"" 用於設定或檢索彈性盒子項目在主軸(橫軸)方向上的對齊
left :""
length :0
letterSpacing :"" 屬性增加或減少字元間的空白
lightingColor :""
lineHeight :"" 設定行高
listStyle :"" 該屬性是一個簡寫屬性,涵蓋了所有其他列表樣式屬性。由於它應用到所有 display 為 list-item 的元素,所以在普通的 HTML 和 XHTML 中只能用於 li 元素,不過實際上它可以應用到任何元素,並由 list-item 元素繼承。
listStyleImage :"" 使用映像來其他清單項的標記。參閱:list-style-image 中可能的值
listStylePosition :"" 設定在何處放置清單項目標記。參閱:list-style-position 中可能的值。
listStyleType :"" 設定清單項目標記的類型。參閱:list-style-type 中可能的值。
margin :""
marginBottom :""
marginLeft :""
marginRight :""
marginTop :""
marker :""
markerEnd :""
markerMid :""
markerStart :""
mask :""
maskType :""
maxHeight :"" 最大高度
maxWidth :""
maxZoom :""
minHeight :""
minWidth :""
minZoom :""
mixBlendMode :""
motion :""
motionOffset :""
motionPath :""
motionRotation :""
objectFit :""
objectPosition :""
opacity :""
order :""
orientation :""
orphans :""
outline :""
outlineColor :""
outlineOffset :""
outlineStyle :""
outlineWidth :""
overflow :""
overflowWrap :""
overflowX :""
overflowY :""
padding :""
paddingBottom :""
paddingLeft :""
paddingRight :""
paddingTop :""
page :""
pageBreakAfter :""
pageBreakBefore :""
pageBreakInside :""
paintOrder :""
parentRule :nu
ll
perspective :""
perspectiveOrigin :""
pointerEvents :""
position :""
quotes :""
r :""
resize :""
right :""
rx :""
ry :""
shapeImageThreshold :""
shapeMargin :""
shapeOutside :""
shapeRendering :""
size :""
speak :""
src :""
stopColor :""
stopOpacity :""
stroke :""
strokeDasharray :""
strokeDashoffset :""
strokeLinecap :""
strokeLinejoin :""
strokeMiterlimit :""
strokeOpacity :""
strokeWidth :""
tabSize :""
tableLayout :""
textAlign :""
textAlignLast :""
textAnchor :""
textCombineUpright :""
textDecoration :""
textIndent :""
textOrientation :""
textOverflow :""
textRendering :""
textShadow :""
textSizeAdjust :""
textTransform :""
top :""
touchAction :""
transform :""
transformOrigin :""
transformStyle :""
transition :""
transitionDelay :""
transitionDuration :""
transitionProperty :""
transitionTimingFunction :""
unicodeBidi :""
unicodeRange :""
userZoom :""
vectorEffect :""
verticalAlign :""
visibility :""
webkitAppRegion :""
webkitAppearance :""
webkitBackgroundClip :""
webkitBackgroundOrigin :""
webkitBorderAfter :""
webkitBorderAfterColor :""
webkitBorderAfterStyle :""
webkitBorderAfterWidth :""
webkitBorderBefore :""
webkitBorderBeforeColor :""
webkitBorderBeforeStyle :""
webkitBorderBeforeWidth :""
webkitBorderEnd :""
webkitBorderEndColor :""
webkitBorderEndStyle :""
webkitBorderEndWidth :""
webkitBorderHorizontalSpacing :""
webkitBorderImage :""
webkitBorderStart :""
webkitBorderStartColor :""
webkitBorderStartStyle :""
webkitBorderStartWidth :""
webkitBorderVerticalSpacing :""
webkitBoxAlign :""
webkitBoxDecorationBreak :""
webkitBoxDirection :""
webkitBoxFlex :""
webkitBoxFlexGroup :""
webkitBoxLines :""
webkitBoxOrdinalGroup :""
webkitBoxOrient :""
webkitBoxPack :""
webkitBoxReflect :""
webkitClipPath :""
webkitColumnBreakAfter :""
webkitColumnBreakBefore :""
webkitColumnBreakInside :""
webkitFontSizeDelta :""
webkitFontSmoothing :""
webkitHighlight :""
webkitHyphenateCharacter :""
webkitLineBreak :""
webkitLineClamp :""
webkitLocale :""
webkitLogicalHeight :""
webkitLogicalWidth :""
webkitMarginAfter :""
webkitMarginAfterCollapse :""
webkitMarginBefore :""
webkitMarginBeforeCollapse :""
webkitMarginBottomCollapse :""
webkitMarginCollapse :""
webkitMarginEnd :""
webkitMarginStart :""
webkitMarginTopCollapse :""
webkitMask :""
webkitMaskBoxImage :""
webkitMaskBoxImageOutset :""
webkitMaskBoxImageRepeat :""
webkitMaskBoxImageSlice :""
webkitMaskBoxImageSource :""
webkitMaskBoxImageWidth :""
webkitMaskClip :""
webkitMaskComposite :""
webkitMaskImage :""
webkitMaskOrigin :""
webkitMaskPosition :""
webkitMaskPositionX :""
webkitMaskPositionY :""
webkitMaskRepeat :""
webkitMaskRepeatX :""
webkitMaskRepeatY :""
webkitMaskSize :""
webkitMaxLogicalHeight :""
webkitMaxLogicalWidth :""
webkitMinLogicalHeight :""
webkitMinLogicalWidth :""
webkitPaddingAfter :""
webkitPaddingBefore :""
webkitPaddingEnd :""
webkitPaddingStart :""
webkitPerspectiveOriginX :""
webkitPerspectiveOriginY :""
webkitPrintColorAdjust :""
webkitRtlOrdering :""
webkitRubyPosition :""
webkitTapHighlightColor :""
webkitTextCombine :""
webkitTextDecorationsInEffect :""
webkitTextEmphasis :""
webkitTextEmphasisColor :""
webkitTextEmphasisPosition :""
webkitTextEmphasisStyle :""
webkitTextFillColor :""
webkitTextOrientation :""
webkitTextSecurity :""
webkitTextStroke :""
webkitTextStrokeColor :""
webkitTextStrokeWidth :""
webkitTransformOriginX :""
webkitTransformOriginY :""
webkitTransformOriginZ :""
webkitUserDrag :""
webkitUserModify :""
webkitUserSelect :""
webkitWritingMode :""
whiteSpace :""
widows :""
width :""
willChange :""
wordBreak :""
wordSpacing :""
wordWrap :""
writingMode :""
x :""
y :""
zIndex :""
zoom :""
js中style的屬性