border
English [ˈbɔ:də(r)] US [ˈbɔ:rdə(r)]
n. bordure; bordure d'emballage
vt.& vi. le côté de...
vt. Le long du côté de..., autour de..., bordant...
vi Approximativement, adjacent à
Troisième personne du singulier : frontières Pluriel : frontières Participe présent : bordant Passé. temps : bordé Participe passé : bordé
image
英[ˈɪmɪdʒ] 美[ˈɪmɪdʒ] n Image; portrait, intention miroir, imagevt. ; symboleTroisième personne du singulier : images Pluriel : images Participe présent : imagerie Passé : imagé Participe passé : imagé
propriété CSS border-image syntaxe
Fonction : Attribut d'abréviation, définit tous les attributs border-image-*.
Description : L'attribut border-image est un attribut raccourci utilisé pour définir les attributs suivants : border-image-source, border-image-slice, border-image-width, border-image-outset, border-image- répéter . Si une valeur est omise, sa valeur par défaut est définie.
Remarque : Veuillez utiliser les propriétés border-image-* pour créer de magnifiques boutons évolutifs !
propriété CSS border-image exemple
<!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">在这里,图片铺满整个边框。</div>
<br>
<div id="stretch">在这里,图片被拉伸以填充该区域。</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 属性规定了用作边框的图片。</p>
</body>
</html>Exécuter l'instance »
Cliquez sur le bouton « Exécuter l'instance » pour afficher l'instance en ligne

