简体   繁体   中英

When using python-markdown what determines the “final” look of the page?

When using python-markdown what determines the final look of the page?

Ie what do I need to change, for example and more importantly where, to let's say, change the color of the H1 headers from black to light blue?

As @JBernardo pointed out in his comment you'll need some CSS. This means that since the HTML output from python-markdown doesn't contain any style, you have to add it yourself to the HTML document and the easiest way to do that is with CSS.

To do that, just make sure that you add a reference to the CSS file in the HTML or that you include the whole style in the HTML document. You'll find more information about how to do that here .

With regard to your question, to set h1 color all you need in your CSS is something as:

h1 { color: <color> }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM