Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
How to delete css style "body ::-webkit-scrollbar" by javascript?

Now the webpage uses the style for scroll which was in the node-modules, I want to delete the property "-webkit-apperance" in my code, how can I do this?

<div class="fs-key" id="fs-id" >....</div>
body ::-webkit-scrollbar{
   -webkit-apperance: none;
    width:10px;
    height:10px;
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can make a new rule for the elements you want to delete the property for like this:

body ::-webkit-scrollbar {
  -webkit-appearance: none;
  width:10px;
  height:10px;
}

.reset-scrollbar::webkit-scrollbar {
  -webkit-appearance: initial;
}

So the only thing you have to do is add the reset-scrollbar class to the classlist.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!