100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > html三个div相同高度 Html三个div并排 高度相同

html三个div相同高度 Html三个div并排 高度相同

时间:2018-10-23 07:09:32

相关推荐

html三个div相同高度 Html三个div并排 高度相同

我想设置三个div并排放置,每个宽度和高度相等。 我无法删除多余的空间在右边最右边的div。如果我将其右边距设置为0,则最右边的div比其他两个更大。Html三个div并排,高度相同

的CSS:

.recordpopup {

position: fixed;

z-index: 10000;

top: 0;

left: 0;

height: 100%;

width: 100%;

background-color: rgba(0, 0, 0, .8);

background-position: 50% 50%;

background-repeat: no-repeat;

display: block;

}

.recordpopup .retry {

background-color: black;

border: 1px solid white;

xborder-radius: 8px;

box-sizing: border-box;

color: white;

font-family: ProximaNova-Regular;

font-size: 16px;

font-weight: bold;

xheight: 50px;

margin-left: auto;

margin-right: auto;

padding-top: 0px;

position: relative;

text-align: center;

top: 30%;

width: 40%;

z-index: 15000;

border-radius: 8px;

padding: 20px 10px;

background-image: url('images/gray_bar.png');

background-repeat: repeat-x;

background-color: white;

}

#product-wrapper {

overflow: hidden;

margin-top: 25px;

}

.product {

float: left;

width: 33%;

display: table-cell;

width: 33.33333333%;

}

.product .container {

margin-right: 10px;

padding: 10px;

background-color: #000;

}

.product .container img {

display: block;

margin: 0 auto;

width: 100%;

}

#closeRecord {

background: black none repeat scroll 0 0;

border: 2px solid white;

border-radius: 50%;

color: white;

cursor: pointer;

height: 25px;

right: -15px;

left: right;

position: absolute;

top: -10px;

width: 25px;

}

HTML:

xLorem Ipsum Lorem Ipsum

Dummy

Dummy

Dummy

-05-24

Sonali

+0

那么你想把你的第三个没有空间的权利?你在哪里做保证金 - 权利为0? –

+0

可能的重复[如何保持两个并排高度相同的div?](/questions/2997767/how-do-i-keep-two-divs-that-are-并排侧最同一高度) –

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。