-
Notifications
You must be signed in to change notification settings - Fork 0
[React Style] How to use CSS hack?
Hill Liu edited this page May 17, 2018
·
2 revisions
- CSS Sample (Output)
<style>
.your-selector {
transform: translate(-12%, -50%);
-moz-transform: translate(-12%, -50%);
-ms-transform: translate(-12%, -50%);
-webkit-transform: translate(-12%, -50%);
}
</style>
- Use ReactStyle
reactStyle(
{
transform: ['translate(-12%, -50%)']
},
'.your-selector'
);
- CSS Sample (Output)
<style>
.your-selector {
display: inline-flex;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
}
</style>
- Use ReactStyle
reactStyle(
{
display: ['inline-flex', '-webkit-inline-box', '-ms-inline-flexbox']
},
'.your-selector'
);