Reset/remove CSS styles for element only

前端 未结 14 1051
长情又很酷
长情又很酷 2020-11-22 00:52

I\'m sure this must have been mentioned/asked before but have been searching for an age with no luck, my terminology must be wrong!

I vaguely remember a twee

14条回答
  •  [愿得一人]
    2020-11-22 01:30

    No, this is just a matter of managing your css structure better.

    In your case i would order my css something like this:

    .element, .element1, .element2 p{z-index: 50; display: block}
    .element, .element1{margin: 0 10}
    .element2 p{transform: translate3d(0, 0, 0)}
    
    @media only screen and (min-width: 980px) {
    .element, .element1, .element2 p{display: none}
    }
    

    Just experiment.

提交回复
热议问题