如何防止我的背景跳躍?我想在我的背景結尾處有一條紅線,但當我懸停在文章上時,它正在跳來跳去。跳躍背景
div {
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
margin-left: 20px;
font-weight: 500;
color: white;
font-size: 20px;
line-height: 21px;
}
.big-column {
height: 396px;
width: 311px;
background-size: cover;
box-sizing: border-box;
background-image: url("https://image.freepik.com/free-vector/modern-technological-elements-with-transparent-background_1035-7108.jpg");
}
.big-column:hover {
border-bottom: 5px solid #e60000;
text-decoration: underline;
color: white;
}
<article class="big-column big-column-1">
<div class="column-description">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing.</p>
</div>
</article>
謝謝:D我會記住這一點 – Djaangoo