<div class="FrameBig" style="float:left; width:25%; height:45px; margin-top:9px; margin-bottom:25px; margin-left:50px; text-align:left">
<table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
<tr>
<td>Cell One</td>
<td>Cell Two</td>
</tr>
<tr>
<td>Cell Three</td>
<td>Cell Four</td>
</tr>
</table>
</div>
FrameBig estEst-ce un bug CSS?
.FrameBig
{
background-color:#D1F3FF;
color:#5793C9;
font-size:medium;
font-weight:bold;
margin:2px;
}
Le code ci-dessus produit une table qui est entièrement bleu (la couleur de fond dans FrameBig)
La chose la plus bizarre est quand je change à ceci:
<div class="FrameSmall" style="float:right; width:25%; height:45px; margin-top:9px; margin-right:50px; margin-bottom:50px; text-align:left">
<table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
<tr>
<td height=45px width=50% valign="middle">
Diner ID:</td><td height=45px width=50% align="right" valign="middle">
<asp:DropDownList ID="DinerUID" runat="server"></asp:DropDownList></td>
</tr>
<tr>
<td height=45px width=50% valign="middle">
Diner Name:</td><td height=45px width=50% align="right" valign="middle">
<asp:DropDownList ID="DinerNameUID" runat="server"></asp:DropDownList></td>
</tr>
</table>
</div>
Vous vous attendez à ce qu'il soit le même que le premier, avec un fond bleu, mais pour une raison quelconque, seule la première rangée est bleue, la deuxième rangée est blanche e.
Quelqu'un peut-il offrir une explication? Le reste du fichier CSS ne contient absolument rien qui puisse interférer.
vous ne réalisez votre div contenant est 45px élevé, mais la table est juste 90px de haut? – gnarf
pas une question de programmation. devrait être sur doctype.com – mauris