CSS3的border-image

來源:互聯網
上載者:User

標籤:number   背景圖片   ber   圖片   pre   ict   div   .com   border   

border-image:none|image-url|number|percentage|stretch,repeat,round

參數:

none:預設,無背景圖片

url:地址,可以為絕對,也可以相對

number:切割背景圖片的邊框大小一共可以有1-4個值,上,右,下,左

percentage:功能同number,只是它用的是百分比,number為數字(不用寫單位,單位為px)

stretch:展開

round:平鋪

repeat:重複邊框背景

1、邊框背景圖切割時,處於四個角的地方不動,平鋪,展開,重複只針對四邊,不包括四角。

【原始邊框背景圖】

.border-img{            width: 200px;            border: 20px solid;            -webkit-border-image: url("picture/12.png") 95 100 85 105 stretch;            border-image: url("picture/12.png") 95 100 85 105 stretch;        }
    
   <div class="border-img">border-img</div>

  

 

CSS3的border-image

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.