Assigned width in percentage but want to get it in pixels

前端 未结 11 1217
北荒
北荒 2020-12-15 15:07



        
11条回答
  •  猫巷女王i
    2020-12-15 15:40

    There can be a problem with multiple divs having percentage width:

    In this case it returns 100 as width for the inner div for me. I solved it by taking the width of the outer div.

提交回复
热议问题