【发布时间】:2013-08-10 01:24:12
【问题描述】:
我希望能够在图像周围制作一个 2 像素的白色边框和一个 8 像素的棕褐色边框,该边框会随着图像的大小自动变化。
article.post .wp-caption img, article.page .wp-caption img {
background: none repeat scroll 0 0 transparent;
border: 2px solid white;
margin: 0;
padding: 0;
}
如果您想查看该网站,请点击以下链接: http://www.metnews.org/news/aurora-remembers-holmes-victims/
【问题讨论】:
-
2 个选项:
img{padding:2px; background:#fff; border:8px solid (w/e color);或img{border:2px solid white; outline: 8px solid (color);
标签: image css background