.container {
grid-template:
[row1-start] "header header header" 25px [row1-end]
[row2-start] "footer footer footer" 25px [row2-end]
/ auto 50px auto;
}
如何使用jss重现此内容?
答案 0 :(得分:2)
在您的JavaScript中,您可以像这样添加它
import injectSheet from 'react-jss'
....
const MyComponent = ({ classes, children }) => (
<div className={classes.container}>
{children}
</div>
)
...
export default injectSheet({
container: {
gridTemplateAreas: `
"header header header"
"sidebar main main"
"footer footer footer"
`,
}
})(MyComponent)