从javascript文件导入fscss
在我的javascript文件中,我做这样的事情:
>
//fscss.js
async function stylewith(){
let fscss = await import("https://wbf.tiiny.site/newfscss.js");
newfscss = (`
:root .box{
$rgb: %3([200,]);
$bg-color: #00f0f0;
}
.box{
%2(
width,
height[: 100px;])
border: 4px solid rgb($rgb!1);
}
$(@keyframes box, .box &[ 3s linear infinite alternate]) {
0%{
transform: rotatex(0);
}
100%{
transform: rotatex(360deg);
}}
`);
fscss.exec(newfscss).use;
}
stylewith();
index.html:











