我在CSS中有一个类:
.border {
border-color: var(--colorArg);
border-style: var(--styleArg);
}
我希望通过HTML在CSS类中传递多个参数,如下所示:
<div class="border" style="--colorArg: blue --styleArg: outset;">
<p>This is a website made as a practice website to learn HTML, CSS, and
JavaScript!