简体   繁体   中英

Any converter to put a css stylesheet into style tags in html?

Edit: Title should refer to style attributes . My bad.

I created a little project (html + css) in order to create a signature for emails. However, I just realized I need just html, no css. Is there any tool that can do from:

.signature_box{
    display: flex;
    position: relative;
}

to:

<div style="display:flex; position: relative;">...</div>

by detecting that the div has ' class="signature_box" '?

You can easily copy your whole.css while inside your.html by doing this:

<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

by including your styles into the

<style></style>

edit:

after this copy your code into https://templates.mailchimp.com/resources/inline-css/ and it should work

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