我在我的主页上遇到了问题。
请你帮我解决一下,当在非常大的屏幕上时,我的页眉图片会左浮动。
<div class="row fullWidth">
<img src="img/header.jpg" alt="header-picture"></div>
CSS:
.fullWidth{width: 100%;margin-left: auto;margin-right: auto;max-width: initial;}
接着添加:
.fullwidth img {
display: block;
width: 100%; /* just add width in case you want the image covering full-width */
margin: 0 auto;
}
到你的样式表。
"