随机显示CSS上方一行的文字

时间:2013-04-18 15:57:11

标签: html css

按钮类内的文字在上面显示一行。 我怎么能删除它? 一个示例可以是主页http://barajon.com/store/product.php?productid=17533&cat=274&page=1上的添加到购物车按钮或愿望清单。

2 个答案:

答案 0 :(得分:0)

如果你仔细观察,你会发现它实际上是一个定义你的按钮类的框。您需要在按钮上使用border : none。同时,按钮内外的颜色也不是很好。

答案 1 :(得分:0)

您正在通过以下规则将该按钮背景图像应用于包含按钮内文本的span(以及按钮本身):

button, button span {
    font-family: Glove;
    font-size: 16px;
    background: url(../../skin/busy-kitchen/css/../images/add2cart.png) no-repeat;
    width: 248px;
    height: 31px;
    border-radius: 8px;
    color: white;
}

从此选择器中移除background规则以从span中删除背景图片,它应该看起来很正常。这对你网站的其他部分有何影响,我不确定。