0
您好我想知道是否有可能通過CSS使用媒體查詢縮小圖像的百分比(比如10%)。通過使用CSS媒體查詢百分比Shink圖像
這是我到目前爲止。 https://jsfiddle.net/gavinfriel/d98sv4cy/
我正在使用像這樣的內容url來源圖像,所以如果可能避免使用背景屬性,將不勝感激。
#logo:before {
content: url(http://static1.squarespace.com/static/56e975d8f8baf3c1d69ac026/t/56f3b98c7da24fd59ecdfa03/1458813324535/irishwater.png);
}
感謝的人。我現在有一個單獨的問題。因爲我正在使用'#irishwater:{{(因此IE/Edge可以使用'content'屬性,因此圖片不會響應媒體查詢,因此當我刪除':before'標籤時,在另一種方法? –
請注意訂單 - http://stackoverflow.com/questions/8790321/why-does-the-order-of-media-queries-matter-in-css – Stickers