|
|
|
|
|
by ainar-g
936 days ago
|
|
I've looked up some JSSS code examples, and it seems like it's pretty much the only type of code where the "with" keyword makes sense: <style type="text/javascript">
tags.H1.color = "red";
tags.p.fontSize = "20pt";
with (tags.H3) {
color = "green";
}
with (tags.H2) {
color = "red";
fontSize = "16pt";
marginTop = "4cm";
}
</style>
|
|