2 回答

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超7個(gè)贊
將頁(yè)腳固定到底部
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
footer: {
position: 'fixed',
bottom: 0,
width: '100%',
height: 60,
textAlign: 'center'
}
}));
const classes = useStyles();
<Link to={"/checkout-summary"} className={classes.footer}>

TA貢獻(xiàn)1963條經(jīng)驗(yàn) 獲得超6個(gè)贊
import { styled } from '@mui/system';
const MyMessageBox = styled('div')({
position: 'fixed',
bottom: 0,
width: '100%',
height: 60,
textAlign: 'center',
});
<MyMessageBox>Contents inside this will be shown at the bottom of the page</MyMessageBox>
- 2 回答
- 0 關(guān)注
- 121 瀏覽
添加回答
舉報(bào)