滚动条未完全显示值
我正在尝试制作一张在悬停时显示一些文本的卡片。
滚动条没有完全滚动,所以我看不到从上到下的整个文本。我需要帮助来解决这个问题。
CSS
#skills a {
border-radius: 25px;
box-shadow: 1rem 1rem 1rem 0 rgb(68 68 68 / 20%);
display: block;
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
}
#skills figure {
width: 100%;
height: 100%;
}
#skills figcaption {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
top: 0;
left: 0;
color: #fff;
opacity: 0;
transition: 0.3s;
}
#skills a:hover figcaption,
#skills a:focus figcaption {
opacity: 1;
}
HTML
<section class="untree_co-section bg-warning" id="skills">
<div class="container">
<div class="row" data-aos="fade-up" data-aos-delay="200">
<div class="col-sm-4 mb-3" id="div-front">
<a>
<figure class="m-0">
<img src="images/skills/front1.jpg" alt="Image" class="img-fluid" id="img-front" />
<figcaption class="d-flex align-items-center justify-content-center overflow-auto">
<ul class="px-5 py-2 m-0 list-unstyled">
<li class="mb-2">
....
</li>
....I'm trying to make a card with displaying some text when hovering.
The scroll bar is not fully scrolled, so I can't see the entire text from top to bottom. I need a help to fix this problem.
CSS
#skills a {
border-radius: 25px;
box-shadow: 1rem 1rem 1rem 0 rgb(68 68 68 / 20%);
display: block;
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
}
#skills figure {
width: 100%;
height: 100%;
}
#skills figcaption {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
top: 0;
left: 0;
color: #fff;
opacity: 0;
transition: 0.3s;
}
#skills a:hover figcaption,
#skills a:focus figcaption {
opacity: 1;
}
HTML
<section class="untree_co-section bg-warning" id="skills">
<div class="container">
<div class="row" data-aos="fade-up" data-aos-delay="200">
<div class="col-sm-4 mb-3" id="div-front">
<a>
<figure class="m-0">
<img src="images/skills/front1.jpg" alt="Image" class="img-fluid" id="img-front" />
<figcaption class="d-flex align-items-center justify-content-center overflow-auto">
<ul class="px-5 py-2 m-0 list-unstyled">
<li class="mb-2">
....
</li>
....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论