使用 CSS 對齊段落文字


要對齊段落文字,請使用*文字文件-縮排*屬性。

示例

可能的值是 % 或指定縮排空間的數字。你可以嘗試執行以下程式碼,用 CSS 實現*文字縮排*屬性

<html>
   <head>
   </head>
   <body>
      <p style = "text-indent:2cm;">
         This text will have first line indented by 2cm and this line will remain at
         its actual position this is done by CSS text-indent property.
      </p>
   </body>
</html>

更新於:31-01-2020

439 次瀏覽

開啟你的職業生涯

完成課程獲得認證

開始
廣告
© . All rights reserved.