文章詳情頁
多張圖片自動換行后圖片居中顯示
瀏覽:138日期:2024-05-21 09:27:46
問題描述
多張圖片橫向并排顯示,自動換行后,可以上下兩排圖片都居中顯示嗎
問題解答
回答1:<!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居中可以了
回答2:不行的,試過了。如果沒有自動換行可以居中顯示,有自動換行后就左對齊的回答3:text-align:center,這個就可以解決你的問題
相關(guān)文章:
1. docker容器呢SSH為什么連不通呢?2. docker - 如何修改運(yùn)行中容器的配置3. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””4. docker start -a dockername 老是卡住,什么情況?5. Android TextView 或 ListView 加載過渡效果6. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?7. python - thrift 返回 TSocket read 0 bytes 求助!!!!8. python3.x - python中import theano出錯9. python - (初學(xué)者)代碼運(yùn)行不起來,求指導(dǎo),謝謝!10. python - django模板 include模板的數(shù)據(jù)問題
排行榜

熱門標(biāo)簽