<style>
.cadre-gris{ margin : 5px 0; }
.cadre-vertemp{border-color : green; border-top-color : red; border-style : solid}
</style>
<div class="cadre-exemple cadre-clickme" id="exemple">
<h3 id="exemple-desc">Valeur par défaut</h3>
<div class="cadre-gris">
<p id="exemple-style-0" class="cadre-vertemp" >Effet borderTopWidth.</p>
</div>
<div class="cadre-gris">
<p id="exemple-style-1">Effet borderTopWidth.</p>
</div>
</div>
<script>
initExemple('border-top-width', 'borderTopWidth', ['thin', 'medium', 'thick', '5px', '2em', '15%', 'inherit'], 2);
</script>
Effet borderTopWidth.
Effet borderTopWidth.