Head Style Tag didn't load #1784
-
Bug ReportI wanted to add some style to my document, then I input this to the <head>
<!--The above is omitted-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<style type="text/css">
p {
text-indent: 2em;
}
</style> But it didn't make text indent. What's the matter? Why? I can't understand.
Please create a reproducible sandboxMention the docsify version in which this bug was not present (if any) |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 8 replies
-
I can't reproduce the problem you mentioned. |
Beta Was this translation helpful? Give feedback.
-
Oh... But here... So I have to use the 2 full-width spaces ( ,  ) to make indent. I think that it has produced by GitHub Pages, or because I'm in Chinese Mainland, then... Wait, I've put the You can look at these file and check the problems below: |
Beta Was this translation helpful? Give feedback.
-
You only added it in zh-cn/index.html, which is normal when using zh-cn as an entry.
|
Beta Was this translation helpful? Give feedback.
-
@sy-records Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
But I want to let the /zh-cn/ become a child folder, not main folder, the main folder is en-us. Hmm, has this caused by "fallbackLanguages", its value is: |
Beta Was this translation helpful? Give feedback.
-
you should add it to /index.html and handle the style according to the language. |
Beta Was this translation helpful? Give feedback.
-
It doesn't give attention to the How to do this? Add the Or use below? I don't want the English text indents, I only want the Chinese text indents I don't want the English text indents, I only want the Chinese text indents I don't want the English text indents, I only want the Chinese text indents <style type="text/css>
/* But this is not very good, because when I use below: */
/*
<p class="zh-cn">**内容**</p>
*/
/* It won't render the markdown text. */
p .zh-cn{
text-indent: 2em;
}
</style> So, what can I do? |
Beta Was this translation helpful? Give feedback.
-
<script>
// Set html "lang" attribute based on URL
var lang = location.hash.match(/#\/(de-de|es|ru-ru|zh-cn)\//);
if (lang) {
document.documentElement.setAttribute('lang', lang[1]);
}
</script> Add css: :lang(zh-cn) #main p {
text-indent: 2em;
} |
Beta Was this translation helpful? Give feedback.
-
Oh, I have come back. |
Beta Was this translation helpful? Give feedback.
Add css: