[英]CSS3 Background query
I have the following code: I also would like to add a image to the right of that box. 我有以下代码:我还想在该框的右边添加一个图像。 Would I use
background-image?
我会使用
background-image?
The image in question is a close icon. 有问题的图像是关闭图标。
CSS: CSS:
.scheduledCenter .alertMessage{
width:100%;
height:15px;
color:#3385B2;
background-color:#D1DEE8;
border:3px solid #8099B4;
border-radius:3px;
padding:5px;
}
You can add: 你可以加:
background: #D1DEE8 url('../images/icon.png') no-repeat 100% 0;
You will get both the icon and the background color. 您将同时获得图标和背景色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.