複数の画像が自動的に折り返された後、画像が中央に表示されます。
❥奈我何❥
❥奈我何❥ 2019-03-07 11:37:05
0
5
1611
ああああああああああああああああああああああああああああああああああああああああああああああああああああ
❥奈我何❥
❥奈我何❥

全員に返信(3)
清
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
text-align: center;
}
</style>
</head>
<body>
<div>
<img src="http://www.php.cn/static/images/footer.gif" alt="">
<img src="http://www.php.cn/static/images/footer.gif" alt="">
<img src="http://www.php.cn/static/images/footer.gif" alt=""><br>
<img src="http://www.php.cn/static/images/footer.gif" alt="">
<img src="http://www.php.cn/static/images/footer.gif" alt="">
</div>
</body>
</html>

DIV を中央に配置できます

いいねを押す +0
  • 返事 3番目の画像に強制改行がないのはなぜですか?
    ❥奈我何❥ 著者 2019-03-11 10:44:12
❥奈我何❥

いいえ、試してみました。自動文字折り返しがない場合は中央に表示でき、自動文字折り返しがある場合は左寄せで表示できます。

いいねを押す +0
殘留の回憶

text-align:center、これで問題が解決します

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート