mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated CSSStyleGuide (markdown)
parent
bf441acb1e
commit
d631c773b5
@ -208,4 +208,13 @@ Wrong:
|
|||||||
/* Sequence of simple selectors. */
|
/* Sequence of simple selectors. */
|
||||||
button.foo.bar {
|
button.foo.bar {
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Images
|
||||||
|
|
||||||
|
Add height and width attributes to images in the html markup to help minimize layout shift during page load.
|
||||||
|
|
||||||
|
```
|
||||||
|
<img src="url/to/image.png" height="240" width="160">
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user