# 如何在 hackmd 中讓文字同時有粗體和斜體! ###### tags: `CSS` `新手向` <style> /* CSS 一定會寫在整篇文章的最上方 */ h1, h2, h3, h4{ color: #C02865; font-family: "Microsoft JhengHei"; } p, li{ font-family: "Microsoft JhengHei"; } /* 以下這段 CSS 可以看一下。 */ .fourth_solution{ background-color: rgba(0, 0, 0, 0) !important; /* 底色 */ font-family: "Microsoft JhengHei"; /* 字型 */ font-size: 16px !important; /* 字體大小 */ font-weight: bold !important; /* 粗體 */ font-style: italic !important; /* 斜體 */ /* !important 代表無視於原先一般規則,強制使用現在這個規則。 */ /* 以上範本結束 */ </style> ## 這是粗體 **粗體** ## 這是斜體 _斜體_ ## 有不只一種達成方式! 1. **_粗體加上斜體_** 2. ***另一種方式*** 3. ___第三種和前一個很類似___ 4. <code class="fourth_solution">第四種最麻煩,hard-coding 同時還要解決其他 CSS 問題QWQ</code> ## 以下測試 ### 失敗 ***arithmetic logic unit (ALU)***. (原文) ### 成功 ***arithmetic logic unit (ALU)x***. (星號與後括號之間有一般字元) ***arithmetic logic unit (ALU)*** . (最後的句點前面空一格) ***arithmetic logic unit (ALU)*** (少了最後的句點) ***arithmetic logic unit (ALU***. (少了後括號)