Skip to content

Commit cba04ac

Browse files
authored
Create amp-tips.md
1 parent c081dac commit cba04ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AMP/amp-tips.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## amp-imgをbackgroundでラップするとマージンができる
2+
amp-imgはinline block要素のため、backgroundで背景をつけると隙間ができる。
3+
ラップしている要素のline-heightを0にすれば隙間ができなくなる。

0 commit comments

Comments
 (0)