我想要一个带有内部垂直文本的堆叠酒吧。我没有把它放在正确的位置。这是我想要的: 堆叠酒吧css
这是我的代码和输出:
.colWrapper{
height:200px;
width:100px;
position:relative;
border:1px solid #ccc;
}
.barContainer{
position:absolute;
bottom:0;
width:100%;
}
.bar{
widith:100%;
padding:10px;
transform: rotate(90deg);
text-align:center;
margin:0
}
<div class="colWrapper">
<div class="barContainer">
<div class="bar" style="background-color:#b4cde2;">Software</div>
<div style="clear:both;"></div>
<div class="bar" style="background-color:#7ca7cc;">Banking</div>
</div>
</div>
谢谢您的回答,我们几乎达到,但我希望它像堆积图,你可以请参阅我附有影像。 –