css中的行間距的代碼_經驗交流

來源:互聯網
上載者:User
css中的行間距的代碼_經驗交流

Css中行間距定義是:

line-height:18px;

上面代碼是將行間距設為18px。長期以來,我在定義字型樣式的時候,通常是這樣:

#myFont{        font:12px tahoma;        line-height:18px; }

今天才發現,原來可以寫成一行,修改如下:

#myFont{       font:12px/18px tahoma; }

以上就是css中的行間距的代碼_經驗交流的內容,更多相關內容請關注topic.alibabacloud.com(www.php.cn)!

  • 相關文章

    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.