<div class="cs1">
<span class="cs2">Label</span>
<span class="cs3"><img src="icon.png" /></span>
<span class="cs4">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span>
</div>
CSS
.cs1{
width:600px;
height:auto;
background-color:#f00;
overflow:hidden;
}
.cs2{
width:170px;
float:left;
height:100%;
}
.cs3{
width:30px;
float:left;
}
.cs4{
width:400px;
float:left;
}
Le code ci-dessus, différentes longueurs des valeurs saisies. Alors, comment puis-je aligner verticalement les valeurs sans utiliser de remplissage?
connaissez-vous la taille de la rangée? (est-ce toujours la même chose?) –
non pas même, c'est changeable, mais j'utilise un commentaire conditionnel pour ie7 et change l'affichage: inline-block, c'est du travail. Pensez-vous que cela causera des problèmes => http://jsfiddle.net/Lwmhy/13/ – midstack
Je sais que le blocage en ligne est également problématique dans IE7. voir http://stackoverflow.com/questions/6544852/ie7-does-not-understand-display-inline-block ... mais je suis venu avec une solution qui implique JS pour définir la hauteur de façon dynamique. voir ci-dessous. –