gpt4 book ai didi

html - css 转换不适用于显示 : none

转载 作者:搜寻专家 更新时间:2023-10-31 08:15:36 25 4
gpt4 key购买 nike

<分区>

无法弄清楚为什么转换不起作用

所以,想法是带有一些文本的 block 应该在 :hover 上可见。它作为非悬停状态的 exepect(隐藏文本思想 rgba)

我尝试了所有和显示属性。我还尝试向所有元素添加过渡,例如 h3 和 p。

请访问 https://jsfiddle.net/dyrc522f/

<div class="photo photo2">Some title
<div class="photobl photobl2">
<h3>Some title</h3>
<p>text</p>
</div>
</div>

CSS

.photo{
width: 244px;
height: 219px;
float: left;
color: #fff;
position: relative;
font-size: 23px;
font-weight: 700;
text-align: center;
padding-top: 180px;
-webkit-transition:all .4s ease;
-moz-transition:all .4s ease;
-ms-transition:all .4s ease;
transition: all .4s ease;

background-color: tomato;/**/
}
.photo:hover{
color: rgba(0, 0, 0, 0);
}
.photo:hover .photobl{
display: block;
}
.photobl{
display: none;
width: 244px;
height: 399px;
position: absolute;
background: rgba(0, 0, 0, 0.5) url('../images/logomin.png') center 40px no-repeat;
top: 0;
-webkit-transition: display .4s ease;
-moz-transition: display .4s ease;
-ms-transition: display .4s ease;
transition: display .4s ease;
}
.photobl h3{
font-size: 23px;
font-weight: 700;
color: #ffcc00;
padding-top: 181px;
padding-bottom: 30px;
}
.photobl p{
font-size: 16px;
font-weight: 300;
color: #fff;
line-height: 1.3;
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com