代码如下,效果如下图,文字超过11,自动换行,而没有把容器撑开,容器width:auto,为什么?
<div id="easy-toast-default" transition="fade" class="et-wrapper et-center-middle fade-leave-to">
<span class="et-content">所有项目都在上面了,啦啦啦,类诶诶诶看fasdffdsfdsfsdfsdsfd!</span>
</div>
.et-wrapper.et-center-middle {
top: 45%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.et-wrapper {
position: fixed;
top: 80%;
}
.et-wrapper {
background-color: rgba(48, 45, 55, 0.701961);
display: block;
color: white;
z-index: 9999;
text-align: center;
border-radius: 10px;
padding: 0.42667rem 0.64rem;
}