Do CSS functions exist?

前端 未结 9 1621
我在风中等你
我在风中等你 2021-01-04 11:08

I\'m not sure what to call this, but basically let\'s say I have a style that I use a lot,

.somepattern{
    font-size:16px;
    font-weight:bold;
    borde         


        
9条回答
  •  花落未央
    2021-01-04 11:39

    you can redefine style by adding the style tag to your HTML:

    Text

    or by applying multiple classes like class="somepattern small".

    HTML

    Text

    CSS

    .small {
    font-size:5px;
    }
    

    the small class will be applied after the somepattern class and will therefore override any properties set in the some pattern class.

提交回复
热议问题