propriété HTML DOM style borderImageSlice
Exemples
trame d'image prédéterminée décalé vers l'intérieur:
document.getElementById("myDIV").style.borderImageSlice="50% 10%";
Essayez »
Définition et utilisation
Intérieurement décalage borderImageSlice attribut spécifie la frontière d'image.
support du navigateur
Opera ne supporte pas la propriété borderImageSlice.
Internet Explorer version 10 et la propriété borderImageSlice antérieures ne sont pas pris en charge.
Safari version 5 et plus tôt ne supportent pas la propriété de borderImageSlice.
Voir borderImage propriété pour le remplacer!
grammaire
Retour propriétés borderImageSlice:
object .style.borderImageSlice
Définition des propriétés de borderImageSlice:
object .style.borderImageSlice="number|%|fill|initial|inherit"
Valeur de la propriété
值 | 描述 |
---|---|
number | 表示图像像素(如果图像是光栅图像)或矢量坐标(如果图像是矢量图像)的数字。 |
% | 表示相对于图像大小的百分比:水平偏移参照图像的宽度,垂直偏移参照图像的高度。默认值是 100%。 |
fill | 使边框图像中间部分被保留下来。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
détails techniques
Par défaut: | 100% |
---|---|
Retours: | Chaîne représentant l'attribut border-image tranche de l'élément. |
CSS version | CSS3 |
articles connexes
Référence CSS: border-image-Slice propriété