2013-01-07 115 views
0

我在iphone中使用enyo按鈕....問題是,當我點擊按鈕導航時,黑色出現在按鈕上....我不知道是否是陰影或邊框顏色和背景顏色....我想刪除這個... plz幫助我....當用戶點擊按鈕時出現在按鈕上的黑色顏色

my code goes here 

    .onyx-Button2 { 
     outline: 0; 
     color: #FFFFFF; 
     font-size: 16px; 
     text-align: center; 
     white-space: nowrap; 
     margin: 0; 
     padding: 1px 1px; 
     overflow: hidden; 
     border-radius: 3px; 
     /* for IE8 */ 
     border: 1px solid #777; 
     border: 1px solid rgba(15, 15, 15, 0.2); 
      /* 
     The border and the gradient interact in a strange way that 
     causes the bottom-border (top if the gradient is aligned top) 
     to be lighter than other borders. 
     We can fix it by using the darker bottom border below, but 
     then there are a few rogue pixels that end up very dark. 
    */ 
     box-shadow: inset 0px 1px 0px rgba(255,255,255,0.2); 
     background: #E1E1E1 url(../../images/gradient.png) repeat-x bottom; 
     background-size: contain; 
     text-overflow: ellipsis; 


} 
+0

看不到任何問題http://jsfiddle.net/mpqVG/你的懸停或活動事件的CSS是什麼? –

+0

CSS爲懸停和活動內容是如下 .onyx-將Button2:懸停{ \t文字修飾:無; } .onyx-Button2:active { \t text-decoration:none; }黑色只出現在IOS設備(但不是在Android中)... PLZ幫助我.... – Sreepad

回答

1

它可能是下到瀏覽器中設置默認值在iOS上 - 我會設置所有適當的屬性來覆蓋所有基地。

所以加

background-color:#ffffff; // Change this to your color you want 

我懷疑這是現在的樣子iOS的默認設置一些CSS,它也可能是與在它處理與圖像的用作背景的方式。不幸的是,雖然iOS符合大多數標準,但它具有實現某些CSS的奇怪方式。