所以我有一个框,我需要在其中显示一些文本,具有红色背景色,并且在框的右侧还有一个图像。
这个想法是文本应该被优先考虑,背景颜色应该仍然是红色。
这是一个示例,但它覆盖了背景颜色:
.test {
background-color: #e64e56;;
box-shadow: 3px 3px 5px darkGray;
color: white;
background: url(http://thumb10.shutterstock.com/thumb_small/536008/103572833/stock-photo-small-flower-isolated-on-white-background-103572833.jpg) no-repeat top right;
}