search

Home  >  Q&A  >  body text

After a label sets display to block, its internal content cannot expand the width of a label.

Hello everyone, I am currently learning HTML by myself, and I encountered a problem when writing a page. After setting the display of the a tag to block, the content in the a tag cannot expand the width of the a tag. I checked I have the code and I don’t know where the problem is. I would like to ask some experienced experts for help. I would be very grateful! !

The code is attached below:

code_1.pngcode_3.pngcode_2.png

风1413 days ago1349

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-04-30 10:47:14

    flex is only valid for child elements

    reply
    0
  • Cancelreply