React Native有效的樣式屬性

ES有效的Style Valid style props:


  "alignContent",//對(duì)齊彈性盒的 <div> 元素的各項(xiàng)

  "alignItems",//居中對(duì)齊彈性盒的各項(xiàng) <div> 元素

  "alignSelf",//居中對(duì)齊彈性對(duì)象元素內(nèi)的某個(gè)項(xiàng)

  "aspectRatio",//定義輸出設(shè)備中的頁(yè)面可見(jiàn)區(qū)域?qū)挾扰c高度的比率。

  "backfaceVisibility",//屬性定義當(dāng)元素不面向屏幕時(shí)是否可見(jiàn)。
如果在旋轉(zhuǎn)元素不希望看到其背面時(shí),該屬性很有用。

  "backgroundColor",//設(shè)置一個(gè)元素的背景顏色

  "borderBottomColor",//設(shè)置元素的底部邊框顏色

  "borderBottomLeftRadius",//定義左下角邊框的形狀

  "borderBottomRightRadius",//定義右下角邊框的形狀

  "borderBottomWidth",//定義底部邊框的寬度

  "borderColor",// 定義邊框的顏色

  "borderLeftColor",//定義邊框左邊的顏色

  "borderLeftWidth",//定義邊框左邊的寬度

  "borderRadius",// 定義邊框的切圓角半徑

  "borderRightColor",//定義邊框右邊的顏色

  "borderRightWidth",//定義邊框右邊的寬度

  "borderStyle",//定義邊框的樣式

  "borderTopColor",//定義邊框頂部的顏色

  "borderTopLeftRadius",//定義邊框左邊的顏色

  "borderTopRightRadius",//定義邊框右邊的切圓角半徑

  "borderTopWidth",// 定義邊框頂部的寬度

  "borderWidth",//定義邊框的寬度

  "bottom",// 底部

  "color",//  顏色

  "direction",//

  "display",//

  "elevation",//

  "flex",//設(shè)置或檢索彈性盒模型對(duì)象的子元素如何分配空間

  "flexBasis",//

  "flexDirection",//

  "flexGrow",//

  "flexShrink",//

  "flexWrap",//

  "fontFamily",//

  "fontSize",//

  "fontStyle",//

  "fontVariant",//

  "fontWeight",//

  "height",//

  "includeFontPadding",//

  "justifyContent",//

  "left",//

  "letterSpacing",//

  "lineHeight",//

  "margin",//

  "marginBottom",//

  "marginHorizontal",//

  "marginLeft",//

  "marginRight",//

  "marginTop",//

  "marginVertical",//

  "maxHeight",//

  "maxWidth",//

  "minHeight",//

  "minWidth",//

  "opacity",//

  "overflow",//

  "overlayColor",//

  "padding",//

  "paddingBottom",//

  "paddingHorizontal",//

  "paddingLeft",//

  "paddingRight",//

  "paddingTop",//

  "paddingVertical",//

  "position",//

  "resizeMode",//

  "right",//

  "rotation",//

  "scaleX",//

  "scaleY",//

  "shadowColor",//

  "shadowOffset",//

  "shadowOpacity",//

  "shadowRadius",//

  "textAlign",//

  "textAlignVertical",//

  "textDecorationColor",//

  "textDecorationLine",//

  "textDecorationStyle",//

  "textShadowColor",//

  "textShadowOffset",//

  "textShadowRadius",//

  "tintColor",//

  "top",//

  "transform",//

  "transformMatrix",//

  "translateX",//

  "translateY",//

  "width",//

  "writingDirection",//

  "zIndex"http://
]
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容