Style borderImageSlice Property
Exemple
Spécifiez les décalages vers l'intérieur de la bordure de l'image :
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
Définition et utilisation
La propriété borderImageSlice spécifie les décalages vers l'intérieur de la bordure de l'image.
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
Regardez plutôt la propriété borderImage !
Syntaxe
Renvoyez la propriété borderImageSlice :
object.style.borderImageSlice
Définissez la propriété borderImageSlice :
object.style.borderImageSlice = "number|%|fill|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Détails techniques
Valeur par défaut: | 100% |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété border-image-slice d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété border-image-slice