CSS - position absolute & document flow

后端 未结 4 1028
暖寄归人
暖寄归人 2021-01-14 06:48

Yes, I know doesn\'t work with position absolute, but is there a way to display elements \"below\" (after in code) not behind them?

Example:



        
4条回答
  •  鱼传尺愫
    2021-01-14 07:08

    How about wrapping the image and the title in an absolute block? This solution puts the title after the image because h2 is a block by default and your content is still absolutely positionned.

    
    
    
    image!

    Am I invisible? (not!)

提交回复
热议问题