【文件属性】:
文件名称:center-aligning-jumbotron:React-bootstrap Jumbotron 将儿童水平和垂直居中
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-16 13:42:40
JavaScript
居中对齐超大屏幕
这是一个 react-bootstrap Jumbotron,它的子项在水平和垂直方向上居中对齐。
使用 Flexbox 实现垂直对齐
使用text-align实现水平text-align
这种样式是使用内联style属性实现的
import CenterAligningJumbotron from 'center-aligning-jumbotron' ;
< CenterAligningJumbotron>
< h1> Centered! < / h1 >
< p> Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay Yay < / p >
< / CenterAligningJumbotron >
fluid性
默认情况下,此组件返回的 Jumbotron 内部有一个<div class
【文件预览】:
center-aligning-jumbotron-master
----stilr.jsx(564B)
----.npmignore(32B)
----README.md(1KB)
----index.jsx(715B)
----.gitignore(50B)
----package.json(930B)