Jump to content


ZeTeC

Member Since 24/03/2010
Offline Last Active 29/03/2010, 09:59
-----

Topics I've Started

Ajuda Com Erro Em Calendario Css/Html

24/03/2010, 11:51

Bom pessoal to com um erro chato a algum tempo.
É o seguinte: tem um input text, que ao lado dele tem uma imagem que qnd vc clica abre um calendario e o usuario seleciona a data. No firerox esta tudo normal, clico e o calendario aparece AO LADO do input text. Ja no IE o calendario aparece LA EM CIMA da pagina, ou seja, totalmente fora de lugar.

Seguindo alguns conselhos me disseram que eh algo na CSS. Vou postar os codigos aqui pra vcs analisarem. tudo muito simples.

JSP:
<li>
 <giroweb:label styleClass="desc" key="acao.dtRealizada"/>
 <form:errors path="dtRealizada" cssClass="fieldError"/>
 <form:input path="dtRealizada" id="dtRealizada" cssClass="text small" maxlength="10" onkeypress="data(this);"/>
 <img src='<c:url value="/images/iconCalendar.gif"/>' id="calDtRealizada" class="giroweb16" title='Calendario'/>
</li>
JS:
Calendar.setup({
 		inputField : "dtRealizada", // ID of the input field
 		ifFormat : "%d/%m/%Y", // the date format
 		button : "calDtRealizada" // ID of the button
	});
CSS:
img.giroweb16{
	border: 0 !important;
 width: 16px;
 height: 16px;
	background: transparent !important;
}
desde ja muito obrigado

IPB Skin By Virteq