谁能解释一下这段代码:
document.styleSheets[0].cssRules[0].style;
如果您使用下面的代码作为示例来解释,那就很好了:
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family:'Times New Roman', Times, serif;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
body{
background-color: rgb(216, 54, 54);
}
.wrapper {
width: 400px;
position: absolute;
transform: translate(50%,50%);
bottom: 50%;
right: 50%;
/* animation: fadeIn 2s ease-in; */
}
我只是想了解一下代码,我是在网上找到的.