使用 CSS 將輪廓樣式設定為虛線


要將輪廓樣式設定為虛線,請將 outline-style 屬性與值 dotted 一起使用 − 

示例

<html>
   <head>
   </head>
   <body>
      <p style = "outline-width:7px;outline-style:dotted;">
         This text is having 7px dotted outline.
      </p>
   </body>
</html>

更新時間: 04-Mar-2020

178 次瀏覽

啟動你的職業生涯

透過完成課程獲得認證

開始學習
廣告
© . All rights reserved.