Heim > Fragen und Antworten > Hauptteil
多张图片横向并排显示,自动换行后,可以上下两排图片都居中显示吗
清2019-03-09 22:48:00
<!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居中可以了