簡體   English   中英

我無法在 div 中應用自定義字體

[英]I cannot apply custom font in div

我正在嘗試為卡片的主體設置自定義字體“warnock”,但不知何故它不適用於任何標簽。 但是,如果我不包含任何標簽並放置文本,它會設置我在 css 中設置的字體。

 .card-body { color: #fff; font-family: warnock, Arial, Helvetica, sans-serif; font-weight: bold; }
 <div class="card-body"> <p>Microblading is a two step process. After 4 weeks your brows will have healed and we aim to work with a 60% retention rate. This is based upon our products, pigments and skill used in the initial treatment. If you were to leave your brows at this stage they would still look ok but you would not see the full benefit of a beautiful pair of brows for the full 12-18months. The initial top up at 4-6 weeks allows me to top up the strokes that need a touch up, bringing the pigment back up to 100%.</p> <p>A few more things to consider BEFORE the microblading treatment, if you have any questions about any of it please just shout:</p> <ul> <li>Do not drink coffee, alcohol or energizing drinks on the day of treatment.</li> <li> Do not take Aspirin, Niacin, Vitamin E or Ibuprofen 24 hours before treatment.</li> <li> Do not take omega3 (fish oil) 1 week before treatment.</li> <li> Do not tan or have intense sun exposure 3 days before treatment.</li> <li>No waxing 2-3 days before treatment.</li> <li> No chemical peels, dermabrasion, laser or any other intense treatments like Botox 2 weeks before or after the treatment.</li> <li> Skin should be healthy, non-irritated and blemish free. I cannot blade over spots or Moles.</li> </ul> </div>

fff 是白色的。 所以你有一個白色的白色並且沒有看到你的 css 發生

 .card-body { color: green; font-family: warnock, Arial, Helvetica, sans-serif; font-weight: bold; }
 <div class="card-body"> <p>Microblading is a two step process. After 4 weeks your brows will have healed and we aim to work with a 60% retention rate. This is based upon our products, pigments and skill used in the initial treatment. If you were to leave your brows at this stage they would still look ok but you would not see the full benefit of a beautiful pair of brows for the full 12-18months. The initial top up at 4-6 weeks allows me to top up the strokes that need a touch up, bringing the pigment back up to 100%.</p> <p>A few more things to consider BEFORE the microblading treatment, if you have any questions about any of it please just shout:</p> <ul> <li>Do not drink coffee, alcohol or energizing drinks on the day of treatment.</li> <li> Do not take Aspirin, Niacin, Vitamin E or Ibuprofen 24 hours before treatment.</li> <li> Do not take omega3 (fish oil) 1 week before treatment.</li> <li> Do not tan or have intense sun exposure 3 days before treatment.</li> <li>No waxing 2-3 days before treatment.</li> <li> No chemical peels, dermabrasion, laser or any other intense treatments like Botox 2 weeks before or after the treatment.</li> <li> Skin should be healthy, non-irritated and blemish free. I cannot blade over spots or Moles.</li> </ul> </div>

您需要將color: #fff替換為color: black

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM