在我的网站上:总部
似乎存在一个问题,如果您尝试将鼠标悬停在顶部区域(该区域显示文件)下,则将鼠标悬停在图像上无法转到链接。但是,如果您尝试视频底部的内容,也可以。我做错了什么?我目前正在寻找答案。因此,如果有人可以提供帮助,我将不胜感激。我是真的 我是菜鸟 我知道。大声笑。
顺便说一句,如果将鼠标悬停在顶部的WORDS上,则有一个提示(对我来说是一个提示),您可以单击。所以我想这就是我的线索。
请告诉我我该怎么做才能使我的问题对任何人都有用,我是新来的。
我试图查看我的HTML是否拼写错误或遗漏了什么,我将继续使用CSS:
/* Projects section */
.projects-section {
text-align: center;
padding: 10rem 2rem;
background: black;
}
.projects-section-header {
max-width: 640px;
margin: 0 auto 6rem auto;
border-bottom: 0.2rem solid black;
}
@media (max-width: 28.75em) {
.projects-section-header {
font-size: 4rem;
}
}
/* "Automagic" image grid using no media queries */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 4rem;
width: 100%;
max-width: 1280px;
margin: 0 auto;
margin-bottom: 6rem;
}
@media (max-width: 30.625em) {
.projects-section {
padding: 6rem 1rem;
}
.projects-grid {
grid-template-columns: 1fr;
}
}
.project {
background: black;
box-shadow: 1px 1px 2px rgb(255, 0, 0);
border-radius: 13px;
}
.code {
color: var(--main-white);
transition: color 0.3s ease-out;
}
.project.code:hover {
color: #00ff22;
}
.project-image {
height: calc(100% - 6.8rem);
width: 100%;
object-fit: cover;
}
.project-title {
font-size: 2rem;
padding: 2rem 0.5rem;
}
.btn {
display: inline-block;
padding: 1rem 2rem;
border-radius: 2px;
}
.btn-show-all {
font-size: 2rem;
background: black;
transition: background 0.3s ease-out;
}
.btn-show-all:hover {
background: red;;
}
.btn-show-all:hover > i {
transform: translateX(2px);
}
.btn-show-all > i {
margin-left: 10px;
transform: translateX(0);
transition: transform 0.3s ease-out;
}
您的视频容器与您的链接重叠。将此添加到您的CSS
.video-container {
height: 50%;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句