84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
多张图片横向并排显示,自动换行后,可以上下两排图片都居中显示吗
<!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>
The DIV can be centered
No, I tried it. If there is no automatic word wrapping, it can be displayed in the center. If there is automatic word wrapping, it can be left aligned.
text-align:center, this can solve your problem
The DIV can be centered
No, I tried it. If there is no automatic word wrapping, it can be displayed in the center. If there is automatic word wrapping, it can be left aligned.
text-align:center, this can solve your problem