fix: 去掉嵌入脚本@scope 样式 手机端不支持@scope
This commit is contained in:
parent
f7b9677a8c
commit
5abf2aaba3
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user