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

View File

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