LLWiki正在建设中,欢迎加入我们

“Widget:Songposition”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
标签移动版网页编辑 移动版编辑
第30行: 第30行:
}
}
.member-symbol img {
.member-symbol img {
width: 20px;
width: 20px !important;
height: auto;
height: auto !important;
}
}
/* </pre><includeonly> */
/* </pre><includeonly> */

2020年10月23日 (五) 05:49的版本

Template-info.png 小部件文档
这个文档是内联文档。

用于{{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 !important;
	height: auto !important;
}
/*