html“lang”属性更改了字体设置

时间:2017-08-07 06:58:48

标签: html css fonts bootstrap-4

Html lang属性将某些div字体和颜色更改为bootstrap默认值。我添加了<html lang="en">并使用了Bliss2 Regular字体。这是采取的defualt字体样式。

.cc-revoke, .cc-window {
position: fixed;
overflow: hidden;
box-sizing: border-box;
**font-family: Helvetica,Calibri,Arial,sans-serif;**
font-size: 16px;
line-height: 1.5em;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
z-index: 9999;
}

这是我的代码:

.cc-window {
**font-family: "Bliss Regular";**
font-size: 16px;
text-align: center;
}

为什么会这样?我怎样才能解决这个问题。这只发生在一些地方。

1 个答案:

答案 0 :(得分:0)

尝试在您要覆盖的样式的末尾添加!important

font-size : 16px !important ;