html - Jade template engine / How to set a background image -
i set background-image html page rendered jade. know how achieve this?
thanks
the background image set in css of page. , has nothing jade.
so, in page css:
body { background-image: url(/images/img1.jpg); }
or using class assign 1 of elements in jade template:
.bkimg { background-image: url(/images/img1.jpg); }
and jade:
body.bkimg p fine body
the same applies element type.
Comments
Post a Comment