javascript - 我无法在 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>
推荐阅读
- java - EventSourceHandler 被错误的事件触发?
- javascript - 为什么 for..of 不能处理这个规范函数
- javascript - 刷新饼图后,切片值被清除
- kubernetes - 如何验证滚动更新?
- apache-spark - Spark提交以传递unicode字符
- verilog - Verilog 赋值语句结果检查
- java - 为什么我在硒中收到错误“屏幕截图失败,重试超时:接收来自渲染器的消息超时:10.000”?
- javascript - 在解析云中更新用户
- python - 如何将熊猫数据框转换为分层字典
- python-3.x - 将 sample_weights 用于平衡数据集是否有意义?