【发布时间】:2015-02-01 07:00:43
【问题描述】:
.upper-menu .search-form::after {
content: url('../images/search.png');
position: absolute;
height: 10px;
top: 5px;
right: 22px;
}
我有一个看起来像这样的伪元素。我想通过将图像缩小 50% 来更改图像的大小,以便它也可以在高分辨率屏幕上使用。我该怎么做?
【问题讨论】:
-
试试
background-size: 10px 5px;
标签: css pseudo-element