2013-02-13 110 views
0

好吧,这是我有,但尽我所能,使其听起来不那么局部的,因为这实际上可能是与Safari浏览器的一个问题...Safari浏览器6.0的问题是推动CSS定位向左

在我的网站http://s361608839.websitehome.co.uk/101d/html_new/index.html我们有一个按钮样式为ozo_button与btn_arrow_right看起来在它的内部跨度是在远离野生动物园这样所有的浏览器正确的形式:

enter image description here

是什么原因造成的CSS使按钮在Safari 6.0中看起来像这样(下面),箭头在文本后面?

enter image description here

HTML:

<a class="ozo_button" href="https://console.101distribution.com?v=register" style="width:200px;cursor:pointer;"><span class="btn_arrow_right ozo_button_icon">icon</span><span class="ozo_button_label">Sign-Up &amp; Get Started</span></a> 

CSS:

a.ozo_button { 
font-family: Verdana; 
font-weight: bold; 
font-size:13px; 
width:75px; 
text-decoration:none; 
display:block; 
padding:5px 15px 5px 0px; 
border:1px solid #999999; 
text-align:center; 
-moz-border-radius:5px; 
-webkit-border-radius:5px; 
-o-border-radius:5px; 
border-radius:5px; 
color:#333; 
border:1px solid #DDD; 
background:#FFFFFF; 
background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#EEE)); 
background:-moz-linear-gradient(0% 90% 90deg, #EEE, #FFF); 
-webkit-transition: all .2s ease-in-out; 
-moz-transition: all .2s ease-in-out; 
-o-transition: all .2s ease-in-out; 
transition: all .2s ease-in-out; 
} 

a.ozo_button span.ozo_button_icon { 
vertical-align:middle; 
margin-left: 0px; 
float: left; 
} 
a.ozo_button span.ozo_button_label{ 
vertical-align:middle; 
padding-left:25px; 
} 
.btn_arrow_right{ 
text-indent:-9999px; 
position:absolute; 
height: 35px; 
width: 35px; 
background:url(../images/arena_sprite.png) -263px -80px no-repeat transparent; 
float: left; 
} 
+0

我无法复制,但您也有'.btn_arrow_right',这是在组合中贡献样式规则。 – steveax 2013-02-14 00:06:27

回答

0

尝试display:inline-block;display:block;根据需求还可以使用float:left;如果您正在使用display:block;

+0

span标签我的意思是 – 2013-02-13 23:58:35

+0

完美,谢谢! – Tim 2013-02-14 00:33:37