如何覆盖Bootstrap字体?

Sha*_*ikh 2 html css web

我目前正在开发HTML,并且正在使用Bootstrap使之更加适合移动设备。但是,bootstrap字体很烂,我希望覆盖它,并用一个更好看的字体替换它。我正在发布HTML文件的标题。看起来像这样:

<head>
  <title> Connotate Engineering </title>
  <meta name=viewport content='width=700'>   
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="ConnotateEngineering.css">
  <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"
rel="stylesheet">

  <link href='https://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
</head>
Run Code Online (Sandbox Code Playgroud)

这就是我的CSS的样子:

body{
  font-family: 'Arial';
  font-size: 12px;
}

#images{
  font-family: 'Arial';
  text-align:left;
  font-style: regular;
  letter-spacing: 0;
  line-height: 1.5em;
  text-decoration: none;
  word-spacing: 0;
}

#images a{
  margin:0px 20px;
  display:inline-block;
  height: 100%;
  text-decoration:none;
  color:black;
  font-family: 'Arial', serif;
  }

.caption {
  width: 200px;
  text-align: center;
}

@media screen and (max-width:480px) {
  #sidebar { display: none;}
}
Run Code Online (Sandbox Code Playgroud)

Ada*_*ith 7

<head>从中更改链接位置:

<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="ConnotateEngineering.css">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)

对此:

<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="ConnotateEngineering.css">
Run Code Online (Sandbox Code Playgroud)

顺序很重要,您希望最终的更改低于其他所有更改。

正如Arham所指出的那样,如果您采用内联样式,则它的优先级将高于引导程序。