fix: 去掉嵌入脚本@scope 样式 手机端不支持@scope

This commit is contained in:
shaohuzhang1 2024-03-18 17:56:22 +08:00
parent f7b9677a8c
commit 5abf2aaba3
2 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ function initMaxkbStyle(root){
style=document.createElement('style') style=document.createElement('style')
style.type='text/css' style.type='text/css'
style.innerText= ` style.innerText= `
@scope {/* 放大 */ /* 放大 */
#maxkb .maxkb-enlarge { #maxkb .maxkb-enlarge {
width: 50%!important; width: 50%!important;
height: 100%!important; height: 100%!important;
@ -284,7 +284,7 @@ function initMaxkbStyle(root){
to { to {
height: 600px; height: 600px;
} }
}}` }`
root.appendChild(style) root.appendChild(style)
} }

View File

@ -138,7 +138,7 @@ function initMaxkbStyle(root){
style=document.createElement('style') style=document.createElement('style')
style.type='text/css' style.type='text/css'
style.innerText= ` style.innerText= `
@scope {/* 放大 */ /* 放大 */
#maxkb .maxkb-enlarge { #maxkb .maxkb-enlarge {
width: 50%!important; width: 50%!important;
height: 100%!important; height: 100%!important;
@ -292,7 +292,7 @@ function initMaxkbStyle(root){
to { to {
height: 600px; height: 600px;
} }
}}` }`
root.appendChild(style) root.appendChild(style)
} }