Css面试题总结
实现垂直居中
flex
最简答的应该就是flex布局直接实现居中了,上代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="parent">
<div class="child">
一串文字一串文字一串文字一串文字一串文字一串文字一串文字一串文字一串文字一串文字
</div>
</div>
<...
lihua.hashnode.dev2 min read