版本 | 屬性 | 說 明 |
---|---|---|
3 | border-radius | 區塊方框四個角的圓角設計。 參考【英文版】 【英文版】 【簡中版】 |
3 | border-image | 以影像設計區塊的邊框。
參考【英文版】
【簡中版】 border-image: source slice width outset repeat; border-image-source: url(border.png); 邊框圖像 border-image-slice: 50% 50%; 邊框圖像向內偏移的距離(%是圖像的百分比大小) border-image-width: 30 30; 邊框圖像的大小 border-image-outset: 30 30; 邊框圖像向外移動的距離 |
<div id="b2"></div> <style> #b2 { width: 300px; height: 300px; margin: 30px auto; background-color: lightsteelblue; } </style>
<div id="b2"></div> <style> #b3 { width: 350px; height: 200px; background-color: lightsteelblue; margin: 30px auto; padding: 15px; border: 15px solid transparent; } </style>