我无法在div中应用自定义字体

问题描述 投票:0回答:1

我正在尝试为卡片的主体设置自定义字体'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>
javascript html css
1个回答
0
投票

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>
© www.soinside.com 2019 - 2024. All rights reserved.