因此,我正在为学校作业做出响应式设计,并且试图以图像宽度为中心。为响应式网站定位图像
我缩放在Photoshop图像,所以我没有任何宽度或高度设置为图像
这是我现在得到但这不起作用
<header> <img src="afb%20/logo3.png" alt="logo3" width="" height="" /> </header>
header{ width: 100%; margin-left: auto; margin-right: auto; }
有人可以帮我吗?真的需要这个!
在此先感谢
谢谢你真是太棒了! –