<!DOCTYPE html>
<html>
<head>
<title>Titre du document</title>
<style>
#example1 {
border: 5px dashed #666;
padding: 15px;
background: #1c87c9;
background-clip: border-box;
}
#example2 {
border: 5px dashed #666;
padding: 15px;
background: #1c87c9;
background-clip: padding-box;
}
</style>
</head>
<body>
<h2>Exemple de la propriété background-clip</h2>
<p>Ici la propriété background-clip est définie "border-box" (c'est la valeur initiale).</p>
<div id="example1">
<p>L'arrière-plan prolonge derrière la bordure.</p>
</div>
<p>Ici la propriété background-clip est définie à "padding-box".</p>
<div id="example2">
<p>L'arrière-plan prolonge au bord intérieur de la bordure.</p>
</div>
</div>
</body>
</html>