Jquery Mobile automatically adds  

前端 未结 2 504
梦谈多话
梦谈多话 2020-12-19 02:31

i\'ve got this code using Jquery Mobile :

相关标签:
2条回答
  • 2020-12-19 03:04

    This problem comes when copying and pasting the source code from their website.

    In fact in this way you copy also invisible blank spaces which are converted as   by the browser and make the last block go down.

    To solve the issue simply remove all the spaces between the tags and all will be displayed correctly.

    0 讨论(0)
  • 2020-12-19 03:14

    There are many ways you can remove the automatic default padding.

    First

    <div style="padding: 0;">...</div>
    

    Second: Define an id for the div tag and set padding to 0 in css

    <div id="myID">
    #myID{ padding:0; }
    
    0 讨论(0)
提交回复
热议问题