博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
flexbox_如何在Flexbox中对齐中心
阅读量:2506 次
发布时间:2019-05-11

本文共 500 字,大约阅读时间需要 1 分钟。

flexbox

Flexbox has become my favorite way to center an element on a page.

Flexbox已成为我最喜欢的在页面上居中放置元素的方法。

You wrap an item in a div, and you set display: flex and justify-content: center.

将项目包装在div ,然后设置display: flexjustify-content: center

...
.wrapper {  display: flex;  justify-content: center;}

Using Tailwind CSS it’s easier, all you have to do is to add the flex and justify-center classes:

使用Tailwind CSS更容易,您所要做的就是添加flexjustify-center类:

...

翻译自:

flexbox

转载地址:http://lxmgb.baihongyu.com/

你可能感兴趣的文章
线性表
查看>>
Spark简介
查看>>
nginx
查看>>
hadoop入门
查看>>
hadoop的搭建
查看>>
转载 :命令:mail 使用方法
查看>>
linux连接器ld
查看>>
生成动态连接库、静态连接库的 makefile
查看>>
Linux开发技巧──库文件的使用
查看>>
Uninterruptible sleep
查看>>
浅议windows内存管理
查看>>
__declspec(dllimport)
查看>>
自己读取进程空间数据
查看>>
Win32 系统线程信息块(TIB)浅析
查看>>
Windows XP下的向量异常处理
查看>>
win32平台下malloc的内部实现
查看>>
Android Application启动流程分析
查看>>
Android Service完全解析,关于服务你所需知道的一切(上)
查看>>
android studio上的jni编译流程以及Android.mk文件的处理
查看>>
使用 buck 打包 Android( 使用OkBuck给Android Studio+gradle生成 buck 脚本)
查看>>