我有这个 CSS / HTML 代码:
.ex1 .box-left {
display:inline-block;
width: 33%;
max-width: 190px;
float: left;
margin:10px 0 0 70px;
}
.ex1 .box-middle {
width: 33%; /* width of the logo */
margin:10px auto 0 auto;
}
.ex1 .box-right {
display:inline-block;
width: 33%;
max-width: 190px;
float: right;
margin:10px 70px 0 0;
}
<div class="ex1">
<div class="box-left">text goes here</div>
<div class="box-right">text goes here</div>
<div class="box-middle">text goes here</div>
</div>
我需要它们以相同的边距彼此相邻地显示,并且在页面的中心之间具有相同的边距,但是当窗口变小时,如果它们不适合它们应该开始显示在彼此下方
有什么想法我能做什么?