I. Problem ideas:

There are three ways to remove unwanted styles

  • Find a way to remove it from the front
  • Direct removal can not be achieved, find ways to remove indirect, such as beyond hidden, content and background color, transparent, etc
  • If you can’t get rid of the indirection, find another way to do it

Ii. Problem method

  • Directly to remove

    ::-webkit-scrollbar {
      width:0;
      height:0;
      opacity:0;
      display: none;
    }
    
    Copy the code
  • Indirect remove

    Make the parent DOM out of hiding, the child scroll bar DOM height three times, so that the scroll bar out of the parent DOM, hidden.

  • Convert other methods

    At present, there is no alternative method for scroll bar.