2012-08-06 52 views
3

我想重新主題Magento 1.7中的主要按鈕與CSS背景顏色的圓角按鈕。我破解了以下代碼,除了搜索按鈕上的一些不需要的背景以及「繼續簽出」按鈕之外,這些代碼在大多數地方都適用。有沒有人有一個更完整和測試的食譜做到這一點?magento - 主題按鈕

button.button span span 
{ 
    background: blue !important;    
    color: black !important; 
    background-color:none !important; 
    font-weight:normal !important; 
} 

button.button span 
{ 
    background: blue !important;  
    padding:3px 8px 3px 8px !important; 
    border-radius:15px !important; 
    border:0px ;  
    margin:0px ;  
    font-weight:normal !important; 
    color: black !important; 
    text-decoration:none !important;  
} 
+0

你有按鈕代碼,或鏈接或圖片嗎? – StuartM 2012-08-07 10:22:21

回答

0

您遇到的問題是,你的風格包含的按鈕中的文本的<span>標籤,但你沒有風格的按鈕本身。

您需要爲button.button(和button.button:hover)添加CSS,或者刪除/更改styles.css中應用的現有CSS。