*Just replaced my editor Notepad++ with Visual Studio Code for more useful components.
1. inline
Before
After
main{
display:flex;
background-color:#cccccc;
}
main>.item{
flex:none;/*none = the item is fixed */
width:300px;margin:10px;
background-color:#ffcccc;
}
2. horizontal alignment
Before
Afer: try justify-content:center , or flex-end, stretch(default setting, also known as “flex-start”)
main{
display:flex;
justify-content:center;
background-color:#cccccc;
}
3. vertical alignment
Before
Afer: try align-items:flex-start , or flex-end, stretch(default setting)
main{
display:flex;
justify-content:center;
align-items:flex-start;
background-color:#cccccc;
}
align-items:flex-start
align-items:flex-end
Feel free to comment and share your ideas below to learn together!
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article.
<<: 从零开始学3D游戏设计:入门程序实作 Part.3 逐渐消失的陷阱
接下来是如何储存题目、抓出题目、呈现题目 对一个老师来说,很常把资料都放在excel 中 所以可以选...
在linebot之中有提供几种讯息格式, Location Imagemap Template 现在...
虽然我们的网站终於整个都布署到云端上,而且功能都正常了,但是,我们的页面外观仍然是丑到不忍直视,虽然...
SphereFace 在2017年发表在CVPR的文章,改进原先使用softmax作为loss fu...
Day 21 - 嵌入 AlexeyAB/darknet 的 Python 如同先前的 Joseph...