LLWiki正在建設中,歡迎加入我們

「Widget:Lyrics」修訂間的差異

跳至導覽 跳至搜尋
// 计算渲染后的实际宽度
document.querySelectorAll('.Lyrics_box').forEach( function(ele) {
var width =if (ele.getBoundingClientRect().width < 720 && ele.getBoundingClientRect().width >== 0) ?{ '100%'return; : '';}
var width = (ele.getBoundingClientRect().width < 720) ? '100%' : '';
ele.querySelectorAll('.Lyrics_original, .Lyrics_translated').forEach( function(self) {
self.style.width = width;