用 CSS 在单个陈述中设置轮廓的宽度、线条样式和颜色属性
outline 属性是一个速记属性,它允许您为多个属性指定值,比如轮廓宽度、线条样式和颜色。
示例
<html> <head> </head> <body> <p style = "outline:thin solid green;"> This text is having thin solid freen outline. </p> <br /> <p style = "outline:thick dashed #009900;"> This text is having thick dashed green outline. </p> <br /> </p> </body> </html>
广告