我正在开发一个第8墙Web应用程序,但这更像是一个css问题。所以我让这些html元素出现在我的屏幕上,它们的样式是z-index: 10 (这是通过第8墙web显示html元素的css要求)。这些元素如下所示:
/*the css for box-* are like so:*/
.box-*{
background-color: red;
transform: rotate(-70deg);
width: 60%;
height: 20%;
}
#scrolling-container{
z-index: 10;
position: absolute;
display: flex;
top: 38%;
}
#button-collections{
display: flex;
flex-direction: row;
overflow: hidden;
height: 200px;
padding-top: 120px;
} <div id="scrolling-container">
<div id="button-collections">
<div id="box-all"><img id="all-button" src="buttons/btn-all.png"></div>
<div id="box-seremban"><img id="btn-seremban" src="buttons/btn-seremban.png"></div>
</div>
</div>
但由于旋转,结果看起来像这个图像https://imgur.com/OdBbwuK。如何消除元素之间的空格?
发布于 2019-08-28 17:06:21
移除scrolling_container中的top:38%;元素和移除#button_collection中的padding_top:120px;元素
https://stackoverflow.com/questions/57667462
复制相似问题