我正在尝试将我的旋转木马的宽度设置为屏幕宽度的100%,而高度从顶部开始占据屏幕的35%。我尝试过无数次将%与height一起使用,但它就是不起作用。
这是我的css:
html,body{
height: 100%; width: 100%; margin: 0;
}
.carousel-slide, .carousel-image, .carousel-inner{
height: 35%;
width: 100%;
}
/*carousel-image is the class for the images placed in the carousel*/
我