首页 前端知识 css3快速完成重构title提示tip样式

css3快速完成重构title提示tip样式

2024-06-22 01:06:39 前端知识 前端哥 284 575 我要收藏

  

.tipCalssName:after {
    content: '提示文字';
    border-radius: 4px 4px 4px 0;
    white-space: nowrap;
    background-color: white;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: absolute;
    left: 100%;
    top: 0;
    box-sizing: border-box;
    padding: 4px 10px;
    line-height: 1.6;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: .382s ease;
    transform: translateX(50%);
}

.tipCalssName:hover:after {
    opacity: 1;
    transform: translateX(0%);
}

.tipCalssName {
    cursor: pointer;
    position: relative;
}

转载请注明出处或者链接地址:https://www.qianduange.cn//article/13261.html
标签
评论
发布的文章

Markdown基础与进阶语法

2024-06-30 22:06:12

零基础 HTML 入门(详细)

2024-06-30 22:06:09

CSS3基本语法

2024-06-30 22:06:51

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!