Home  >  Q&A  >  body text

Teacher, I have a question, that is display: block,

Teacher, I have a question, that is display: block. I know that its function is to control the display of elements that are not displayed, but if it is used for inline elements, such as adding display:block to inline elements such as span, this inline The element will become a fast element, so I think there are two answers to this question, both of which are correct. Its function should be two (1) to change the inline element into a block-level element (2) to prevent it from being displayed The label shows

不乖不乖2049 days ago994

reply all(2)I'll reply

  • 殘留の回憶

    殘留の回憶2019-03-14 09:20:21

    There is nothing wrong with what you said. If you change it to a block-level element, it will be displayed naturally.

    But what is your problem? I haven't understood it yet

    reply
    0
  • Cancelreply