How can I add this css in readme.md?
P粉696605833
P粉696605833 2024-03-31 19:56:53
0
1
333

How to use this effect in readme.md file?


<h1>Welcome</h1>
h1 {
    background-image: url(./image.gif);
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

This is what I get when I write the html and css directly in the readme file Readme screenshot

P粉696605833
P粉696605833

reply all(1)
P粉670838735

You just need to surround the CSS with tags.

Should render correctly with most Markdown parsers.

Welcome

Unfortunately, on GitHub.com, this trick doesn't work. This is due to their sterilization process. "HTML has been sanitized to actively remove content that may harm you and your relatives, such as script tags, inline styles, and class or id attributes."

to know more information:

https://github.com/orgs/community/discussions/22728

https://stackoverflow.com/a/51956450/16512927

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!