我想将粘滞的div从站点上的空间中排除.它按照预期工作,并固定在所需的位置.
超文本标记语言
<div v-if="isToastActive" class="toast">
<span class="message">{{ messageRef }}</span>
</div>
CSS
.toast {
position: sticky;
left: 100%;
bottom: 0rem;
max-width: fit-content;
background-color: #22bb33;
color: white;
border-radius: 0.5rem;
padding: 0.25rem 0.5rem;
}
所以我的问题是:
我怎么能把粘粘的 cogo toast 从滚动条上go 掉呢?