mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 去掉嵌入脚本@scope 样式 手机端不支持@scope
This commit is contained in:
parent
f7b9677a8c
commit
5abf2aaba3
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue