<div class="flex-33">
<div class="menu-container">
<img class="menu-image" src="img/bocadillobody.png" alt="Sandwitch">
<div class="menu-description">
<h4>Sandwitch</h4>
<p>Powder marshmallow marshmallow brownie carrot cake candy bonbon. Sweet sugar plum gummies caramels tart carrot cake tiramisu cheesecake. Cheesecake biscuit jelly beans. Jelly-o icing chocolate macaroon. </p>
</div>
</div>
</div>
请问有人可以帮我消除两个divs之间的空白img
和.menu-description
请吗?删除垂直格之间的空间
我估计在过去3小时我尝试了所有解释为here,但只有部分运气,空白消失,但在改变浏览器width
再次出现。
发布一个活生生的例子(*有关CSS等*) –
普莱斯e提供你的css代码,不可能在没有看到你的风格的情况下帮助你。 –
更改图像的CSS以显示:block;因为内联元素会导致这样的问题 –