CSS: display:inline-block and positioning:absolute

后端 未结 3 602
广开言路
广开言路 2020-11-28 07:51

Please consider the following code:



    

        
3条回答
  •  再見小時候
    2020-11-28 08:33

    This can in fact be done easily and simply with divs. You just need to place a div with position:relative inside the inline or block display div. Set its width and height to the same as the containing div. You will then find you can position another div absolutely inside it.

提交回复
热议问题