Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d3192dfaf | ||
|
|
9c9511e817 |
@@ -186,7 +186,7 @@
|
||||
if (w === todayWk) cls += ' today';
|
||||
if (w === selectedWeek) cls += ' selected';
|
||||
wHtml += '<div class="' + cls + '" data-week="' + w + '" title="' + w + '">' +
|
||||
'W' + w.split('-W')[1].replace(/^0/, '') + '</div>';
|
||||
'第' + w.split('-W')[1].replace(/^0/, '') + '周</div>';
|
||||
}
|
||||
var we = document.getElementById('cal-weeks');
|
||||
we.innerHTML = wHtml;
|
||||
|
||||
@@ -220,14 +220,13 @@ body {
|
||||
|
||||
/* 周选择 */
|
||||
.cal-weeks {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 8px;
|
||||
padding: 8px 14px 10px;
|
||||
justify-content: center;
|
||||
}
|
||||
.cal-week-cell {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
height: 42px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Reference in New Issue
Block a user