用户:82428505/货币战争.js
刷
历
编
跳到导航
跳到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
// 创建样式表并插入到文档头部
const style = document.createElement('style');
style.type = 'text/css';
// 拼接所有样式规则
const cssRules = `
.chess-delete-area {
width: 3.95rem !important;
height: 100% !important;
left: auto !important;
top: 0;
right: 104%;
}
.emulator-chess-bond-wrapper {
height: 3.77rem;
}
.un-flex-inline, .un-inline-flex {
flex-wrap: wrap;
}
`;
// 插入样式规则
if (style.styleSheet) {
// IE 兼容处理
style.styleSheet.cssText = cssRules;
} else {
style.appendChild(document.createTextNode(cssRules));
}
// 将样式表添加到 head 标签中
document.head.appendChild(style);
console.log('样式已成功添加:');
console.log('- .delete-area: width: 3.95rem; height: 100%; top: 0; right: 104%;');
console.log('- .emulator-chess-bond-wrapper: height: 3.77rem;');
console.log('- .un-flex-inline, .un-inline-flex: flex-wrap: wrap;');

沪公网安备 31011002002714 号