div容器中的HTML输入元素太大(owl转盘和引导程序星级)
我认为这是一个基本问题。我想在我的html文件中布局我的元素。我在我的站点中集成了一个星级,但在“猫头鹰旋转木马滑块项目”(owlcarousel slideritem)中它变得非常大。如果我将星号放在猫头鹰项目之外,它将正确缩放(如下所示)。我尝试了各种各样的调整参数,但我就是不明白div容器中的HTML输入元素太大(owl转盘和引导程序星级),html,css,owl-carousel,Html,Css,Owl Carousel,我认为这是一个基本问题。我想在我的html文件中布局我的元素。我在我的站点中集成了一个星级,但在“猫头鹰旋转木马滑块项目”(owlcarousel slideritem)中它变得非常大。如果我将星号放在猫头鹰项目之外,它将正确缩放(如下所示)。我尝试了各种各样的调整参数,但我就是不明白 <div id="slider" class="owl-carousel"> <div class="item"> <label for="input-
<div id="slider" class="owl-carousel">
<div class="item">
<label for="input-2" class="control-label">Style</label>
<input id="input-2" class="rating rating-loading" data-min="0" data-max="5" data-step="0.5" data-size="xs" data-show-caption="false">
</div>
</div>
输出如下所示:
请将您的CSS包含在您的问题中尝试制作
.rating container
显示:表格
和.rating container.star
显示:表格单元格
否,不起作用。但是谢谢你的回答。
.rating-loading {
width: 15px;
height: 25px;
font-size: 0;
color: #ffffff;
background: transparent url('../img/loading.gif') top left no-repeat;
border: none;
}
/*
* Stars
*/
.rating-container .rating {
cursor: default;
position: relative;
vertical-align: middle;
display: inline-block;
overflow: hidden;
white-space: nowrap;
}
.rating-disabled .rating {
cursor: not-allowed;
}
.rating-container .star {
display: inline-block;
margin: 0 3px;
text-align: center;
}
.rating-container .empty-stars {
color: #ffffff;
}
.rating-container .filled-stars {
position: absolute;
left: 0;
top: 0;
margin: auto;
color: #fde16d;
white-space: nowrap;
overflow: hidden;
-webkit-text-stroke: 1px #777;
text-shadow: 1px 1px #999;
}
.rating-rtl {
float: right;
}
.rating-animate .filled-stars {
transition: width 0.25s ease;
-o-transition: width 0.25s ease;
-moz-transition: width 0.25s ease;
-webkit-transition: width 0.25s ease;
}
.rating-rtl .filled-stars {
left: auto;
right: 0;
-moz-transform: matrix(-1, 0, 0, 1, 0, 0) translate3d(0, 0, 0);
-webkit-transform: matrix(-1, 0, 0, 1, 0, 0) translate3d(0, 0, 0);
-o-transform: matrix(-1, 0, 0, 1, 0, 0) translate3d(0, 0, 0);
transform: matrix(-1, 0, 0, 1, 0, 0) translate3d(0, 0, 0);
}
.rating-rtl.is-star .filled-stars {
right: 0.06em;
}
.rating-rtl.is-heart .empty-stars {
margin-right: 0.07em;
}