title: How can I change css directly(without variable) in Blazor?
body: <p>I am using the server-side of Blazor.</p>
  
  <p>I want to change the CSS of the body.</p>
  
  <p>In Jquery I can write the code like this easily:</p>
  
  <pre><code>$("body").css("overflow-y","hidden");
  </code></pre>
  
  <p>However, with this tutorial(<a href="https://stackoverflow.com/questions/58199723/blazor-change-validation-default-css-class-names">Blazor Change Validation default css class names</a>) said, it seems I can only change the CSS by changing the class name.</p>
  
  <p>It is so complex while crossing the component, especially the body is at the top of all the components.</p>
  
  <p>I wonder whether there is a way can changes CSS directly in Blazor. Thank you.</p>