summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-15 16:38:55 +0800
committerEltrac <hi@guhub.cn>2025-09-15 16:38:55 +0800
commit8b3bae95dcb9a346a470862bf79285a56bb4961d (patch)
tree8690567556fe1462dfc6a962037b9246c9d27059
parent2183f4ca351c747b098575cfa7805b3f0ca1a9ca (diff)
docs: add note about HTML structure
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2047dde..18c3bd4 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,16 @@ Also, include [libra.css](https://github.com/BigCoke233/libra/blob/master/src/li
<link rel="stylesheet" href="/src/libra.css" />
```
+Make sure your images all have their `data-libra` attribute.
+
+```html
+<div class="libra">
+ <img data-libra src="1.jpg" />
+ <img data-libra src="2.jpg" />
+ <!-- ... -->
+</div>
+```
+
## Development
```