Alternatives to illegal
or

within

  • tags on a hover?
  • 后端 未结 5 1517
    攒了一身酷
    攒了一身酷 2020-12-19 03:13

    Does anyone have a suggestion for creating paragraph-type line spaces within a

  • tag that includes a hovered pop-up pseudo-class?

    I have a

  • 5条回答
    •  谎友^
      谎友^ (楼主)
      2020-12-19 03:25

      Your problem may arise from the fact that you're using a tag incorrectly.

      Spans are supposed to be inline elements and you're styling it as though it were a block element. Admittedly you can force a span to behave as a block element by adding the right style, but this may not always be honoured by the various browsers out there.

      Ideally you should be using a div instead. You can then use either p tags or further div tags to indicate the paragraphs (ideally p, since semantically they actually are paragraphs rather than unrelated blocks of text).

    提交回复
    热议问题