利用css3中的after和content制做简单的tooltip

> 主要使用css中的:after伪类,以及content属性 代码块 代码块语法以下:css .tooltip-block:hover:after{ border: 1px solid #fc0; padding: 3px 6px; background: #fffea1; content: attr(data-title); position: absolute; right: -40px;
相关文章
相关标签/搜索