LLWiki正在建设中,欢迎加入我们!
Widget:Songposition
跳转到导航
跳转到搜索
JavaScript脚本:
window.addEventListener('load', function () {
document.querySelectorAll( '.member-symbol' ).forEach(function(ele) {
ele.dataset.title = ele.title;
ele.removeAttribute('title');
});
});
//
CSS样式表:
*/
.member-symbol {
display: inline-block;
position: relative;
}
.member-symbol:hover::after {
content: attr(data-title);
position: absolute;
white-space: nowrap;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 1px solid #a7d7f9;
z-index: 10;
background-color: #fff;
padding: 0 3px;
border-radius: 4px;
box-shadow: 1px 1px 1px #ccc;
}
.member-symbol img {
width: 20px;
height: auto;
}
/*