老師為什麼代碼這樣寫 圖片無法在螢幕中置中呢?
<!DOCTYPE html> <html> <style type="text/css"> .container{ width:80%; margin: 0 auto; } .top{ width: 100%; margin: 0 auto; } .bottom{ width: 100%; } </style> <head> <title></title> </head> <body> <div class="container"> <div class="top"> <img src="http://img1.sycdn.imooc.com/climg//58c0f808000129a303600215.jpg"> <img src="http://img1.sycdn.imooc.com/climg//58c0f819000198a703600214.jpg"> </div> <div class="bottom"></div> <img src="http://img1.sycdn.imooc.com/climg//58c0f81d0001fe4402000060.jpg"> <img src="http://img1.sycdn.imooc.com/climg//58c0f8220001dfce02000060.jpg"> <img src="http://img1.sycdn.imooc.com/climg//58c0f8780001c74602000060.jpg"> </div> </body> </html>
6
收起
正在回答 回答被采纳积分+1
1回答
weixin_慕雪0272820
2020-06-11 14:15:40
老師這題我搞定了 不用回
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星