J'ai une page web simple http://www.webdevout.net/test?0V, reproduit ci-dessoustaille de police spécifiée sur l'élément de corps est ignoré par l'entrée
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
body { font-size: 12px;}
</style>
<title>Test</title>
</head>
<body>
<p>test</p>
<form action="/foo" method="get">
<fieldset>
<input type="text" value="bar" />
</fieldset>
</form>
</body>
</html>
Quand j'utilise Firebug pour inspecter la page, le texte « test » est 12px comme prévu , mais le texte "barre" dans l'entrée est 11px, je m'attendrais à ce qu'il soit 12px. Qu'est-ce qui se passe s'il vous plaît?
Quelques informations supplémentaires http://www.komodomedia.com/blog/2006/10/css-trickery-part-5-inheritance/ – pingu