📜  css 显示无过渡 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:33.707000             🧑  作者: Mango

代码示例2
div > img {
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 0;
}

div:hover > img {
    visibility: visible;
    opacity: 1;
    height: auto;
    width: 4rem;
    transition: all 0.5s, opacity 2s;
}