Small micro-channel program buton clear the default style

I believe that many small partners in the development process will encounter a small applet Button plagued default style, you need to set up again and again at the time of reset styles

Here I share a small way in their own development:

The CSS  All  abbreviations in addition to the attribute  unicode-bidi and  direction all attributes other than reset to its initial value, or a value inherited

Further all attribute value is not an initial

MDN example attach  https://developer.mozilla.org/zh-CN/docs/Web/CSS/all

button{
  all:initial;  
}

After initialization, button is inline elements, you need to set the width of the block-level elements changed when I remember, otherwise invalid Oh width

It is not comfortable, hehe

Guess you like

Origin www.cnblogs.com/chanwahfung/p/11312084.html