mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-30 05:14:53 +08:00
Update documentation
This commit is contained in:
@@ -60,7 +60,8 @@ This function is called on press.
|
|||||||
+ `letterSpacing`
|
+ `letterSpacing`
|
||||||
+ `lineHeight`
|
+ `lineHeight`
|
||||||
+ `textAlign`
|
+ `textAlign`
|
||||||
+ `textDecoration`
|
+ `textAlignVertical`
|
||||||
|
+ `textDecorationLine`
|
||||||
+ `textShadow`
|
+ `textShadow`
|
||||||
+ `textTransform`
|
+ `textTransform`
|
||||||
+ `whiteSpace`
|
+ `whiteSpace`
|
||||||
|
|||||||
@@ -174,16 +174,16 @@ const styles = StyleSheet.create({
|
|||||||
CSS output:
|
CSS output:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
._s1 { color: gray; }
|
.__style1 { color: gray; }
|
||||||
._s2 { font-size: 2rem; }
|
.__style2 { font-size: 2rem; }
|
||||||
._s3 { font-size: 1.25rem; }
|
.__style3 { font-size: 1.25rem; }
|
||||||
```
|
```
|
||||||
|
|
||||||
Rendered HTML:
|
Rendered HTML:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<span className="_s1 _s2">Heading</span>
|
<span className="__style1 __style2">Heading</span>
|
||||||
<span className="_s1 _s3">Text</span>
|
<span className="__style1 __style3">Text</span>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Reset
|
### Reset
|
||||||
@@ -200,6 +200,7 @@ html {
|
|||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
-ms-text-size-adjust: 100%;
|
-ms-text-size-adjust: 100%;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-webkit-tap-highlight-color:rgba(0,0,0,0)
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -214,12 +215,6 @@ input::-moz-focus-inner {
|
|||||||
|
|
||||||
input[type="search"]::-webkit-search-cancel-button,
|
input[type="search"]::-webkit-search-cancel-button,
|
||||||
input[type="search"]::-webkit-search-decoration {
|
input[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
display: none;
|
||||||
}
|
|
||||||
|
|
||||||
ol,
|
|
||||||
ul,
|
|
||||||
li {
|
|
||||||
list-style:none
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user