style: nametag 大区块整体居中

This commit is contained in:
rogerwang2008 committed 2026-11-11 00:37:31 +08:00
1 parent 3df00d0def
commit a8d6ee439b
2 files changed
+2 -2

No files matched your search

+2
View File
@@ -29,6 +29,8 @@
/* 演职员表大区块:4 × 9 姓名网格,背景 alpha 0.5 */ /* 演职员表大区块:4 × 9 姓名网格,背景 alpha 0.5 */
.nametag-block { .nametag-block {
position: absolute; position: absolute;
left: 50%;
transform: translateX(-50%);
z-index: 1; z-index: 1;
display: grid; display: grid;
background: rgba(10, 8, 6, 0.5); background: rgba(10, 8, 6, 0.5);
-2
View File
@@ -140,7 +140,6 @@
gapX: 1, gapX: 1,
gapY: 1, gapY: 1,
padding: 1, padding: 1,
left: 2,
top: 12, top: 12,
}; };
@@ -151,7 +150,6 @@
const block = document.createElement('div'); const block = document.createElement('div');
block.className = 'nametag-block'; block.className = 'nametag-block';
block.style.left = `${TAG.left}em`;
block.style.top = `${TAG.top}em`; block.style.top = `${TAG.top}em`;
block.style.width = `${blockWidth}em`; block.style.width = `${blockWidth}em`;
block.style.height = `${blockHeight}em`; block.style.height = `${blockHeight}em`;