If you get an "Invalid name" error when you run npm init -y
, rename the project folder to only contain lowercase ASCII letters or hyphens (e.g. my-project
), and try again.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>不定宽高的图片如何在div中水平垂直居中</h2> | |
方法1: | |
<div class="box wraper"> | |
<img src="http://cdn.jsrun.top/css/img/logo.png" alt="" /> | |
</div> | |
方法2: | |
<div class="box wraper2"> | |
<img src="http://cdn.jsrun.top/css/img/logo.png" alt="" /> | |
</div> | |
<h2>多行文本如何在div中水平垂直居中</h2> |