Quando utilizzo l'HTML senza DOCTYPE
, la mia pagina HTML Height=100%
funziona."Altezza = 100%" non funziona in html quando si utilizza <!DOCTYPE>?
Ma quando io uso DOCTYPE
, l'altezza non funziona correttamente ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="11" height ="100%">
<tr>
<td height="100%" bgcolor="#008000"> </td>
</tr>
</table>
</body>
Come risolvere questo problema?
Ecco una spiegazione semplice e chiara del problema DOCTYPE: http://stackoverflow.com/a/32215263/3597276 –