border
UK[?b?:d?(r)] US[?b?:rd?(r)]
n.Border; edge; edging; wrapping Edge
vt.& vi. Bound with, on the edge of...
vt. Along the edge of, surround..., edge...
vi. Approximate, adjacent
Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered
image
英[ ??m?d?] 美[??m?d?]
##n.Image; portrait; concept, intention; mirror image, imagevt.Reflection; imagination; image of; symbol Third person singular: images Plural: images Present participle: imaging Past tense: imaged Past participle: imaged
css3 border-image property syntax
Function: Use pictures to create borders
Description: Composite attributes. Sets or retrieves the object's border style to fill with an image.
border-image is a shorthand property in CSS3, through which images can be used to create borders
css3 border-image property example
<!DOCTYPE html> <html> <head> <style> div { border:15px solid transparent; width:300px; padding:10px 20px; } #round { -moz-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Old Firefox */ -webkit-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Safari and Chrome */ -o-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Opera */ border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; } #stretch { -moz-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Old Firefox */ -webkit-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Safari and Chrome */ -o-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Opera */ border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; } </style> </head> <body> <div id="round">在這里,圖片鋪滿整個(gè)邊框。</div> <br> <div id="stretch">在這里,圖片被拉伸以填充該區(qū)域。</div> <p>這是我們使用的圖片:</p> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg"> <p><b>注釋:</b> Internet Explorer 不支持 border-image 屬性。</p> <p>border-image 屬性規(guī)定了用作邊框的圖片。</p> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance