-
Notifications
You must be signed in to change notification settings - Fork 8
rule img width height
Hanxing Yang edited this page Jul 10, 2016
·
1 revision
img-width-height
Attribute width & height of <img> is recommended to be set, which can reduce re-layout while rendering. If found not set, it reports.
<!-- Bad -->
<img src="./sample.jpg">
<img src="./sample.jpg" width="">
<img src="./sample.jpg" height="">
<img src="./sample.jpg" width="100">
<img src="./sample.jpg" height="100">
<img src="./sample.jpg" width="100" height="">
<img src="./sample.jpg" height="100" width="">
<!-- Good -->
<img src="./sample.jpg" height="100" width="100">-
015Attribute
widthandheightof<img>found not set. -
016Attribute
widthof<img>found not set. -
017Attribute
heightof<img>found not set.
-
trueDo check / format.
-
falseDo not check / format.
No.