css J'ai téléchargé une partie de mon écran ci-dessous (lien: http://yfrog.com/0d30127380p) alt text http://img13.imageshack.us/img13/9098/30127380.pngpositionnement
Il fait partie d'un forum, donc il y a des éléments ci-dessus et en dessous. Le "Response Req .. Date" a une étiquette, un sélecteur de date, et deux contrôle de sélection déroulant pour le temps. J'ai essayé de définir la largeur de l'élément datepicker, et une marge de droite afin que les sélecteurs de temps se positionnent à côté de lui. Mais il est toujours assis en dessous. Je ne suis pas bon en positionnement CSS, donc toute suggestion serait très appréciée.
<div class="wrapper ">
<label for="responseRequiredDate">
Response Required Date
<span class="indicator">*</span>
</label>
<input type="hidden" name="responseRequiredDate" value="struct" /><div class="datetimepicker">
<div class="datePicker">
</div>
<script> ...</script>
<div class="timepicker"><select ....
</div> </div>
le sélecteur de date insère une balise de script, cela pose un problème. probablement pas. La css calculée à partir de firebug est donnée ci-dessous.
le seul style actuellement différent de inherited est l'affichage: inline .. J'ai essayé float, clear, margin etc sans succès. donc les enlevés pour plus de clarté. S'il vous plaît laissez-moi savoir si vous avez besoin d'informations supplémentaires.
datePicker :
font-family verdana,arial,helvetica,sans-serif
font-size 12.8px
font-weight 400
font-style normal
color #222222
text-transform none
text-decoration none
letter-spacing normal
word-spacing 0
line-height 20.7833px
text-align start
vertical-align baseline
direction ltr
Background
background-color transparent
background-image none
background-repeat repeat
background-position 0 0
background-attachment scroll
opacity 1
Box Model
width auto
height auto
top auto
right auto
bottom auto
left auto
margin-top 0
margin-right 0
margin-bottom 0
margin-left 0
padding-top 0
padding-right 0
padding-bottom 0
padding-left 0
border-top-width 0
border-right-width 0
border-bottom-width 0
border-left-width 0
border-top-color #222222
border-right-color #222222
border-bottom-color #222222
border-left-color #222222
border-top-style none
border-right-style none
border-bottom-style none
border-left-style none
Layout
position static
display inline
visibility visible
z-index auto
overflow-x visible
overflow-y visible
white-space normal
clip auto
float none
clear none
-moz-box-sizing content-box
Other
cursor auto
list-style-image none
list-style-position outside
list-style-type disc
marker-offset auto
TimePicker:
font-family verdana,arial,helvetica,sans-serif
font-size 12.8px
font-weight 400
font-style normal
color #222222
text-transform none
text-decoration none
letter-spacing normal
word-spacing 0
line-height 20.7833px
text-align start
vertical-align baseline
direction ltr
Background
background-color transparent
background-image none
background-repeat repeat
background-position 0 0
background-attachment scroll
opacity 1
Box Model
width auto
height auto
top auto
right auto
bottom auto
left auto
margin-top 0
margin-right 0
margin-bottom 0
margin-left 0
padding-top 0
padding-right 0
padding-bottom 0
padding-left 0
border-top-width 0
border-right-width 0
border-bottom-width 0
border-left-width 0
border-top-color #222222
border-right-color #222222
border-bottom-color #222222
border-left-color #222222
border-top-style none
border-right-style none
border-bottom-style none
border-left-style none
Layout
position static
display inline
visibility visible
z-index auto
overflow-x visible
overflow-y visible
white-space normal
clip auto
float none
clear both
-moz-box-sizing content-box
Other
cursor auto
list-style-image none
list-style-position outside
list-style-type disc
marker-offset auto
Pouvez-vous nous montrer le CSS que vous avez utilisé pour produire l'exemple dans votre capture d'écran? Et quel datePicker et timePicker utilisez-vous? –
merci Marcel .. le css est montré ci-dessus .. le datepicker est de YUI, mais le sélecteur de temps est rendu personnalisé (deux entrée de sélection). J'utilise le temps de Joda, donc je ne suis pas sûr qu'il existe déjà des contrôles similaires. Tout fonctionne, sauf le positionnement, que je suppose que peut être résolu par CSS. – bsr