我想用带有背景颜色的CSS圆形按钮重新主题Magento 1.7中的主要按钮。我整理了以下代码,该代码在大多数地方都可以使用,除了搜索按钮和“继续检出”按钮上某些不需要的背景之外。有没有人有更完整和经过测试的食谱来做到这一点?

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;
}

最佳答案

您遇到的问题是您已对包含按钮内文本的<span>标记设置了样式,但尚未对按钮本身进行样式设置。

您需要为button.button(和button.button:hover)添加CSS,或者在styles.css中删除/更改应用于它的现有CSS。

10-05 20:41
查看更多