mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-10 08:44:28 +02:00
[pug/en] Fix style attribute syntax error (#4653)
This commit is contained in:
@@ -84,8 +84,8 @@ div(class=meineKlasse)
|
|||||||
|
|
||||||
//- JS Stil
|
//- JS Stil
|
||||||
- const meineStile = {'color':'white', 'background-color':'blue'}
|
- const meineStile = {'color':'white', 'background-color':'blue'}
|
||||||
div(styles=meineStile)
|
div(style=meineStile)
|
||||||
//- <div styles="{"color":"white","background-color":"blue"}"></div>
|
//- <div style="color:white;background-color:blue;"></div>
|
||||||
|
|
||||||
//- JS Attributte
|
//- JS Attributte
|
||||||
- const meineAttribute = {"src": "foto.png", "alt": "meine Bilder"}
|
- const meineAttribute = {"src": "foto.png", "alt": "meine Bilder"}
|
||||||
|
@@ -80,8 +80,8 @@ div(class=myClass)
|
|||||||
|
|
||||||
//- JS Styles
|
//- JS Styles
|
||||||
- const myStyles = {'color':'white', 'background-color':'blue'}
|
- const myStyles = {'color':'white', 'background-color':'blue'}
|
||||||
div(styles=myStyles)
|
div(style=myStyles)
|
||||||
//- <div styles="{"color":"white","background-color":"blue"}"></div>
|
//- <div style="color:white;background-color:blue;"></div>
|
||||||
|
|
||||||
//- JS Attributes
|
//- JS Attributes
|
||||||
- const myAttributes = {"src": "photo.png", "alt": "My Photo"}
|
- const myAttributes = {"src": "photo.png", "alt": "My Photo"}
|
||||||
|
Reference in New Issue
Block a user