div的dispaly:inline樣式 和span的區別_經驗交流

來源:互聯網
上載者:User
不是說用了display:lnline就變內聯原素了嗎 為什麼還和span有區別
更奇怪的是ff裡面執行就沒區別

<span style="background-color:red;">xxx</span> <span style="background-color:red;">xxx</span> xxx xxx <span style="background-color:red;">我是沒有間隔的</span><span style="background-color:red;">偉大的hutia,挖哈哈哈</span>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
IE中斷行符號是作為一個空格處理的,挖哈哈哈
  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.