我想一個標誌添加到樣式爲漸變一個按鈕,但背景圖像「刪除」,背景色...背景梯度背景圖像
這裏是小提琴: http://jsfiddle.net/FDXy5/及以下是當前tet .css。
.rounded-orange-button {
text-align: center;
color: #FFFFFF;
display: inline-block;
border-radius: 2px;
line-height: 27px;
width: 200px;
position: relative;
background: #FF9100;
background: -webkit-gradient(linear, 0 0, 0 100%, from(#FF9100) to(#FA6800));
background: -webkit-linear-gradient(top, #FF9100, #FA6800);
background: -moz-linear-gradient(top, #FF9100, #FA6800);
background: -o-linear-gradient(top, #FF9100, #FA6800);
background: linear-gradient(to bottom, #FF9100, #FA6800);
-pie-background: linear-gradient(to bottom, #FF9100, #FA6800);
}
.logo-edit{
background-image: url('http://www.w3schools.com/cssref/smiley.gif');
background-repeat:no-repeat;
}
感謝幫助我:-)
可能重複(http://stackoverflow.com/questions/ 2504071/is-it-it-it-combine-a-background-image-and-css3-gradients) –