codice:
<html>
<head>
<style type='text/css'>
div.divBottone {
float: left;
margin: 0;
margin-right: 10px;
padding: 0;
width: auto;
height: 20px;
border: none;
background: transparent;
}
span.bottone {
display: block;
float: left;
height: 20px;
margin: 0;
padding: 0;
background-repeat: no-repeat;
padding-top: 7px;
}
.bottoneTesto {
font-size: 11px;
color: #ffffff;
font-family: "Trebuchet MS";
font-weight: bold;
text-decoration: none;
position: relative;
display: inline;
top: -4px;
}
a.rollover {
background: transparent;
color: #ffffff;
text-decoration: none;
margin: 0;
padding: 0;
}
a:hover.rollover {
background: transparent;
color: #ffffff;
text-decoration: none;
margin: 0;
color: black;
padding: 0;
}
span.bottoneSx {
width: 6px;
background-color: transparent;
background-position: 0 0;
}
a.rollover span.bottoneSx {
background-image: url(../images/btn-left.png);
margin: 0;
}
a:hover.rollover span.bottoneSx {
background-image: url(../images/btn-left-on.png);
margin: 0;
}
/* CENTRO BOTTONE */
span.bottoneCentro {
width: auto;
background-color: transparent;
background-repeat: repeat-x;
background-position: 0 0;
}
a.rollover span.bottoneCentro {
background-image: url(../images/btn-center.png);
margin: 0;
}
a:hover.rollover span.bottoneCentro {
background-image: url(../images/btn-center-on.png);
margin: 0;
}
/* FINE BOTTONE */
span.bottoneDx {
width: 6px;
background-color: transparent;
background-position: 0 0;
}
a.rollover span.bottoneDx {
background-image: url(../images/btn-right.png);
margin: 0;
}
a:hover.rollover span.bottoneDx {
background-image: url(../images/btn-right-on.png);
margin: 0;
}
td.formInput {
/*border-right: 5px solid black;*/
padding-left: 10px;
padding-bottom: 10px;
width: 110px;
font-size: 11px;
line-height: 10px
}
td.formInputField {
padding-bottom: 10px;
}
.campoLeftLeft{
float:left;
text-align:left;
}
.clear{
clear:both;
line-height:1px;
font-size:1px; /*solo safari*/
}
div.bottoneBackSx {
background-image: url(btn-left-on.png);
margin: 0;
padding: 0;
float:left;
background-repeat: no-repeat;
}
div.bottoneBack {
background-image: url(btn-center-on.png);
margin: 0;
padding: 0;
float:left;
background-repeat: repeat-x;
}
div.bottoneBackDx {
background-image: url(btn-right-on.png);
margin: 0;
padding: 0;
float:left;
background-repeat: no-repeat;
}
</style>
</head>
<body style="background-color: #D3ECF5;">
<table style="width: 830px;">
<tbody>
<tr>
<th>CODICE FISCALE<span class="mandatory">*</span><span class="obbligatorio"></span></th>
<td>
<div class="clear"></div>
<span class="campoLeftLeft"><input type="text" class="sinistra" onblur="javascript:this.value=this.value.toUpperCase();" value="" tabindex="5" size="19" maxlength="16" name="codFiscaleContribuente"></span>
<div style="width: 28%;" class="campoLeftLeft">
<div class="divBottone">
<a href="javascript:rubrica();" title="" class="rollover">
<div class="bottoneBackSx">
<span class="bottone bottoneSx"></span>
</div>
<div class="bottoneBack">
<span class="bottone bottoneCentro">
<span class="bottoneTesto">
<span>Rubrica</span>
</span>
</span>
</div>
<div class="bottoneBackDx">
<span class="bottone bottoneDx"></span>
</div>
</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</body>
</html>
Su certi computer eliminando i file temporanei il bottone si vede male (IE8). Su tutti i computer su cui ho provato io si vede male la prima volta (etichetta sfasata) e poi sempre bene, anche eliminando cookie e file temp !!
Ci possono essere versioni diverse di ie8 ?