diff --git a/src/assets/css/svg.css b/src/assets/css/svg.css new file mode 100644 index 0000000..412a1d9 --- /dev/null +++ b/src/assets/css/svg.css @@ -0,0 +1,9 @@ +/* 调整 SVG 中文本定位点到文本中央 */ +text { + text-anchor: middle; + dominant-baseline: middle; +} + +svg { + user-select: none; +} diff --git a/src/index.html b/src/index.html index f237210..182d205 100644 --- a/src/index.html +++ b/src/index.html @@ -7,20 +7,9 @@