繁体   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