這次帶給大家css樣式中的border-image使用詳解,使用css樣式中border-image的注意事項有哪些,下面就是實戰案例,一起來看一下。
border-image-source 屬性設定邊框的圖片的路徑[none |
p { border: 20px solid #000; border-image-source: url(border.png); }
border-image-slice 屬性圖片邊框向內偏移[
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; }
border-image -width 屬性設定圖片邊框的寬度[
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; }
border-image-outset 屬性設定邊框圖像區域超出邊框的量[
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; }
#border-image-repeat 屬性設定影像邊框是否要平鋪(repeated)、鋪滿(rounded)或拉伸(stretched)(1,2)
p { border: 20px solid #000; border-image-source: url(border.png); border-image-slice: 27,27,27,27; border-image-width: 27px 1 10% 27px; border-image-outset: 27px 27px 27px 27px; border-image-repeat: rounded; border-image: url(border.png) 27 rounded; }
相信看了本文案例你已經掌握了方法,更多精彩請關注php中文網其它相關文章!
推薦閱讀:
#以上是css樣式中的border-image使用詳解的詳細內容。更多資訊請關注PHP中文網其他相關文章!