Skip to content

Commit fb08ead

Browse files
author
一丝
committed
Fix image path
1 parent e9be2a8 commit fb08ead

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

README-zh.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,19 +287,19 @@ input:
287287
```css
288288
.foo {
289289
background-image: -webkit-image-set(
290-
url(./test/img/yuxifan@1x.jpg) 1x,
291-
url(./test/img/yuxifan@2x.jpg) 2x);
290+
url(../img/yuxifan@1x.jpg) 1x,
291+
url(../img/yuxifan@2x.jpg) 2x);
292292
}
293293
```
294294

295295
output:
296296

297297
```css
298298
.foo {
299-
background-image: url(./test/img/yuxifan@1x.jpg); /* Fallback */
299+
background-image: url(../img/yuxifan@1x.jpg); /* Fallback */
300300
background-image: -webkit-image-set(
301-
url(./test/img/yuxifan@1x.jpg) 1x,
302-
url(./test/img/yuxifan@2x.jpg) 2x);
301+
url(../img/yuxifan@1x.jpg) 1x,
302+
url(../img/yuxifan@2x.jpg) 2x);
303303
}
304304
@media
305305
only screen and (-o-min-device-pixel-ratio: 2/1),
@@ -309,7 +309,7 @@ output:
309309
only screen and (min-resolution: 192dpi),
310310
only screen and (min-resolution: 2dppx) {
311311
.foo {
312-
background-image: url(./test/img/yuxifan@2x.jpg);
312+
background-image: url(../img/yuxifan@2x.jpg);
313313
background-size: 320px 427px;
314314
}
315315
}
@@ -325,13 +325,13 @@ input:
325325

326326
```css
327327
.foo {
328-
background: url(./test/img/post-and-pre.png);
328+
background: url(../img/post-and-pre.png);
329329
width: image-width;
330330
height: image-height;
331331
}
332332

333333
.foo {
334-
background: url(./test/img/post-and-pre.png);
334+
background: url(../img/post-and-pre.png);
335335
margin: image-width image-height -image-height;
336336
content: 'image-width';
337337
}
@@ -341,13 +341,13 @@ output:
341341

342342
```css
343343
.foo {
344-
background: url(./test/img/post-and-pre.png);
344+
background: url(../img/post-and-pre.png);
345345
width: 720px;
346346
height: 719px;
347347
}
348348

349349
.foo {
350-
background: url(./test/img/post-and-pre.png);
350+
background: url(../img/post-and-pre.png);
351351
margin: 720px 719px -719px;
352352
content: 'image-width';
353353
}

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,19 +203,19 @@ input:
203203
```css
204204
.foo {
205205
background-image: -webkit-image-set(
206-
url(./test/img/yuxifan@1x.jpg) 1x,
207-
url(./test/img/yuxifan@2x.jpg) 2x);
206+
url(../img/yuxifan@1x.jpg) 1x,
207+
url(../img/yuxifan@2x.jpg) 2x);
208208
}
209209
```
210210

211211
output:
212212

213213
```css
214214
.foo {
215-
background-image: url(./test/img/yuxifan@1x.jpg); /* Fallback */
215+
background-image: url(../img/yuxifan@1x.jpg); /* Fallback */
216216
background-image: -webkit-image-set(
217-
url(./test/img/yuxifan@1x.jpg) 1x,
218-
url(./test/img/yuxifan@2x.jpg) 2x);
217+
url(../img/yuxifan@1x.jpg) 1x,
218+
url(../img/yuxifan@2x.jpg) 2x);
219219
}
220220
@media
221221
only screen and (-o-min-device-pixel-ratio: 2/1),
@@ -225,7 +225,7 @@ output:
225225
only screen and (min-resolution: 192dpi),
226226
only screen and (min-resolution: 2dppx) {
227227
.foo {
228-
background-image: url(./test/img/yuxifan@2x.jpg);
228+
background-image: url(../img/yuxifan@2x.jpg);
229229
background-size: 320px 427px;
230230
}
231231
}
@@ -240,13 +240,13 @@ input:
240240

241241
```css
242242
.foo {
243-
background: url(./test/img/post-and-pre.png);
243+
background: url(../img/post-and-pre.png);
244244
width: image-width;
245245
height: image-height;
246246
}
247247

248248
.foo {
249-
background: url(./test/img/post-and-pre.png);
249+
background: url(../img/post-and-pre.png);
250250
margin: image-width image-height -image-height;
251251
content: 'image-width';
252252
}
@@ -256,13 +256,13 @@ output:
256256

257257
```css
258258
.foo {
259-
background: url(./test/img/post-and-pre.png);
259+
background: url(../img/post-and-pre.png);
260260
width: 720px;
261261
height: 719px;
262262
}
263263

264264
.foo {
265-
background: url(./test/img/post-and-pre.png);
265+
background: url(../img/post-and-pre.png);
266266
margin: 720px 719px -719px;
267267
content: 'image-width';
268268
}

0 commit comments

Comments
 (0)