用 CSS 為邊框設定虛線
要給邊框設定虛線,可以使用border-style屬性,可以嘗試執行以下程式碼來實現border-style屬性值dotted,從而設定虛線邊框
示例
<html> <head> </head> <body> <p style = "border-width:3px; border-style:dotted;"> This is a dotted border. </p> </body> </html>
廣告
要給邊框設定虛線,可以使用border-style屬性,可以嘗試執行以下程式碼來實現border-style屬性值dotted,從而設定虛線邊框
<html> <head> </head> <body> <p style = "border-width:3px; border-style:dotted;"> This is a dotted border. </p> </body> </html>