outline-style屬性指定圍繞元素的線條的樣式。它可以採用以下值之一 -
您可以嘗試執行以下程式碼來實作outline-style屬性 -
<html> <head> </head> <body> <p style = "outline-width:thin; outline-style:solid;"> This text is having thin solid outline. </p> <br /> <p style = "outline-width:thick; outline-style:dashed;"> This text is having thick dashed outline. </p> <br /> <p style = "outline-width:5px;outline-style:dotted;"> This text is having 5x dotted outline. </p> </body> </html>
以上是CSS 輪廓樣式屬性的詳細內容。更多資訊請關注PHP中文網其他相關文章!