border 外边框
生活随笔
收集整理的這篇文章主要介紹了
border 外边框
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
語法:
border:<line-width> || <line-style> || <color>
<line-width> = <length> | thin | medium | thick
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
默認值:看每個獨立屬性
適用于:所有元素
繼承性:無
動畫性:看每個獨立屬性
計算值:看每個獨立屬性
相關屬性:[ border-top ] || [ border-right ] || [ border-bottom ] || [ border-left ]
?
取值:
<line-width>: 設置或檢索對象邊框寬度。 <line-style>: 設置或檢索對象邊框樣式。 <color>: 設置或檢索對象邊框顏色。?
說明:
復合屬性。設置對象邊框的特性。參閱outline屬性。
- 如使用該復合屬性定義其單個參數,則其他參數的默認值將無條件覆蓋各自對應的單個屬性設置。
- 對應的腳本特性為border。
?
<!DOCTYPE html> <html> <head><meta charset="utf-8"><title>border 外邊框</title><style type="text/css">.parent{border-width: 1px 1px 2px 3px;border-style: solid;border-color: #0ff;width: 300px;height: 200px;}</style> </head> <body> <div class="parent"></div> </body> </html>轉載于:https://www.cnblogs.com/qq-757617012/p/6101786.html
總結
以上是生活随笔為你收集整理的border 外边框的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Atitit 五种IO模型attila
- 下一篇: 编码相关总结