Html div中的宽度相同,内有较大或较短的文本

Html div中的宽度相同,内有较大或较短的文本,html,css,bootstrap-4,Html,Css,Bootstrap 4,我对框的大小有问题,问题是有时候框内的文本比其他框更大。我的箱子怎么能有固定的宽度?是否有可以执行dat的引导类 你想买一个维亚杰尔吗? 奥特罗:没有任何人会对一个由阿尔圭人和一个青年人组成的团体进行个人辩论 不感兴趣的是:作为一个地牢和一个地下室,我们需要一个海洋的阿尔圭岛 有意思的是:这是一个被遗弃的人,他出生后的日子过得很好 编辑:最后一个框的宽度小于较大屏幕中的其他框。在你的类中,在jsfiddle中尝试增大HTML部分的大小。选项文本你应该添加字体大小:[想要的大小]。因此,每个

我对框的大小有问题,问题是有时候框内的文本比其他框更大。我的箱子怎么能有固定的宽度?是否有可以执行dat的引导类


你想买一个维亚杰尔吗?
奥特罗:没有任何人会对一个由阿尔圭人和一个青年人组成的团体进行个人辩论
不感兴趣的是:作为一个地牢和一个地下室,我们需要一个海洋的阿尔圭岛
有意思的是:这是一个被遗弃的人,他出生后的日子过得很好

编辑:最后一个框的宽度小于较大屏幕中的其他框。在你的类
中,在jsfiddle中尝试增大HTML部分的大小。选项文本
你应该添加
字体大小:[想要的大小]
。因此,每个框/选项将具有相同的字体大小。

添加标签bootstrap class=“col-12”如:


在所有标签上添加col-12。现在每个标签将获得100%的宽度,所有标签将具有相同的大小


Live

使用选项类添加d-flex弹性柱类

.row{
背景#f8f9fa;
边缘顶部:20px;
}
上校{
边框:实心1px#6c757d;
填充:10px;
}
//字体
//@导入url('https://fonts.googleapis.com/css?family=Nunito');
//变数
@输入‘变量’;
//引导
//@导入“~bootstrap/scss/bootstrap”;
@导入“~bootswatch/dist/material/bootstrap.min.css”;
@导入“~toastr/toastr”;
@导入“~animate.css/animate.css”;
//字体真棒
//@导入“~@fortawesome/fontawesome free/scss/fontawesome”;
//@导入“~@fortawesome/fontawesome free/scss/regular”;
//@导入“~@fortawesome/fontawesome free/scss/solid”;
//@导入“~@fortawesome/fontawesome free/scss/brands”;
/**一般植物**/
身体{
背景色:#F9F9F9;
}
.nav登录{
盒影:无;
颜色:$白色!重要;
文本转换:大写;
垫面:0.3rem;
右侧填充:1rem;
垫底:0.3rem;
左:1rem;
}
.nav登录:悬停{
背景色:#b61825;
}
.nav登录名a{}
a{
颜色:$白色;
}
a:悬停{
颜色:$黑色;
文字装饰:无;
}
.btn mred{
背景色:$mred;
}
.btn mred:悬停{
背景色:$btn mred悬停;
}
.bg颜色{
背景颜色:$bg颜色;
}
/**图像背景**/
身体,
html{
身高:100%;
}
.bg{
/*使用的图像*/
背景图片:url(“../imgs/imgparejas/couple-1030744.jpg”)!重要;
/*全高*/
身高:100%!重要;
/*将图像居中并精确缩放*/
背景位置:中心;
背景重复:无重复;
背景尺寸:封面;
}
.bg2{
/*使用的图像*/
背景图片:url(“../imgs/imgparejas/couple-1363967.jpg”)!重要;
/*全高*/
身高:100%!重要;
/*将图像居中并精确缩放*/
背景位置:中心;
背景重复:无重复;
背景尺寸:封面;
}
.bg3{
背景图片:url(“../imgs/imgparejas/couple-1329349.jpg”)!重要;
/*全高*/
身高:100%!重要;
/*将图像居中并精确缩放*/
背景位置:中心;
背景重复:无重复;
背景尺寸:封面;
}
.bg4{
背景图片:url(“../imgs/imgparejas/freestocks-org-t3mxtwj4-unsplash.jpg”)!重要信息;
/*全高*/
身高:100%!重要;
/*将图像居中并精确缩放*/
背景位置:中心;
背景重复:无重复;
背景尺寸:封面;
}
mred先生{
背景色:$mred;
}
.标语{
字体大小:15px;
}
.标志{
字体大小:25px;
}
/**卡片欢迎***/
.欢迎卡{
背景颜色:$欢迎卡;
}
/**纸牌**/
.卡片材料{
盒影:0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24);
过渡:所有0.3立方贝塞尔(.25、.8、.25、1);
}
.卡片材质:悬停{
盒影:0 14px 28px rgba(0,0,0,0.25),0 10px 10px rgba(0,0,0,0.22);
}
.信息卡>*{
字体大小:25px;
}
.圆圈{
显示:内联块;
文本对齐:居中;
宽度:70px;
高度:70像素;
-moz边界半径:50%!重要;
-webkit边界半径:50%!重要;
边界半径:50%;
-网络工具包盒阴影:-2px 3px 10px 0px rgba(0,0,0,0.75);
-莫兹盒阴影:-2px 3px 10px 0px rgba(0,0,0,0.75);
盒影:-2px 3px 10px 0px rgba(0,0,0,0.75);
}
.circle>图标{
位置:相对位置;
顶部:calc(50%-10px);
/*图标高度的50%-3/4*/
}
.fav btn{
背景色:$白色;
}
.msg btn{
背景色:$白色;
}
.lov图标{
字体大小:25px;
}
.msg图标{
字体大小:25px;
}
.lov图标颜色{
颜色:$红色;
}
.msg图标颜色{
颜色:绿色;
}
.fav btn sel
<div class="container">
    <div class="row justify-content-center">
        <div class="col-xs-12 col-md-12 col-lg-12 col-xl-12">
            <div class="progress my-4">
                <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="12" aria-valuemin="0" aria-valuemax="17" style="width: 70.588235294118%">
                </div>
            </div>
            <div class="col-md-12 ">
                <div class="card box-option-container justify-content-center  ">
                    <h2 tabindex="0" role="heading" class="text-center">
                       <div class="question-title">
                           ¿Estas abierto/a a viajar?
                        </div>
                    </h2>
                    <div class="row text-center no-gutters d-flex justify-content-center ">
                        <div class="option">
                            <label for="Otro: No puedes dejar tu tierra por razones personales mas estás dispuesto a tener una relación con alguien que sí pueda dejar su hogar e ir contigo">
                                <div class="box-option py-5 align-middle ">
                                    <input id="Otro: No puedes dejar tu tierra por razones personales mas estás dispuesto a tener una relación con alguien que sí pueda dejar su hogar e ir contigo" type="radio" name="SEARCHED_GENDER" class="radio" value="hombre">
                                    <span class="p-5 option-text">Otro: No puedes dejar tu tierra por razones personales mas estás dispuesto a tener una relación con alguien que sí pueda dejar su hogar e ir contigo</span>
                                </div>
                            </label>
                            <label for="No interesado: Por nada del mundo dejarías a tu tierra y a los seres queridos con los creciste, por lo que necesitas a alguien que sea de tu misma comunidad">

                                <div class="box-option py-5 align-middle ">
                                    <input id="No interesado: Por nada del mundo dejarías a tu tierra y a los seres queridos con los creciste, por lo que necesitas a alguien que sea de tu misma comunidad" type="radio" name="SEARCHED_GENDER" class="radio" value="hombre">
                                    <span class="p-5 option-text">No interesado: Por nada del mundo dejarías a tu tierra y a los seres queridos con los creciste, por lo que necesitas a alguien que sea de tu misma comunidad</span>
                                </div>
                            </label>
                            <label for="Interesado: Estás dispuesto a abandonar tu tierra natal y vivir mucho tiempo en el extranjero">

                                <div class="box-option py-5 align-middle ">
                                    <input id="Interesado: Estás dispuesto a abandonar tu tierra natal y vivir mucho tiempo en el extranjero" type="radio" name="SEARCHED_GENDER" class="radio" value="hombre">
                                    <span class="p-5 option-text">Interesado: Estás dispuesto a abandonar tu tierra natal y vivir mucho tiempo en el extranjero</span>
                                </div>
                            </label>
                        </div>
                    </div>
                </div>

                <div class="nav-buttons right-button float-right m-2">
                    <a class="btn btn-primary next" href="http://ilink.test/test/next" style="display: none;">Pregunta Siguiente</a>
                </div>

                <div class="nav-buttons left-button float-left m-2">
                    <a class="btn btn-warning back" href="http://ilink.test/test/back">Pregunta Anterior</a>
                </div>
            </div>
        </div>

    </div>
</div>
<label class="col-12" for="Interesado: Estás dispuesto a abandonar tu tierra natal y vivir mucho tiempo en el extranjero">