bootstrap字体不反映 - 用于bootswatch主题

时间:2013-03-28 23:14:31

标签: css twitter-bootstrap fonts themes google-font-api

我在训练中非常棒。我尝试了我的第一个引导页面,然后从bootswatch.com下载了一个主题,并用Cerulean主题替换了bootstrap.css。当我更改bootstrap.css中的字体时,它保留旧主题

@import url(//fonts.googleapis.com/css?family=Caesar+Dressing);

但是当我刷新页面时它没有反映出来。

   <!DOCTYPE html>
<head>

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">

<title>Twitter Bootstrap Tutorial - A responsive layout tutorial</title>
<style type='text/css'>

</style>
<script>
$(function() {
  // Setup drop down menu
  $('.dropdown-toggle').dropdown();

  // Fix input element click problem
  $('.dropdown input, .dropdown label').click(function(e) {
    e.stopPropagation();
  });
});
</script>
</head>
<body>
<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container"><!-- Collapsable nav bar -->
      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>

      <!-- Your site name for the upper left corner of the site -->
      <a class="brand">GUVI</a>

      <!-- Start of the nav bar content -->
      <div class="nav-collapse"><!-- Other nav bar content -->


        <!-- The drop down menu -->
        <ul class="nav pull-right">
          <li><a href="/users/sign_up">Sign Up</a></li>
          <li class="divider-vertical"></li>
          <li class="dropdown">
            <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
            <div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
              <form action="[YOUR ACTION]" method="post" accept-charset="UTF-8">
  <input id="user_username" style="margin-bottom: 15px;" type="text" name="user[username]" size="30" />
  <input id="user_password" style="margin-bottom: 15px;" type="password" name="user[password]" size="30" />
  <input id="user_remember_me" style="float: left; margin-right: 10px;" type="checkbox" name="user[remember_me]" value="1" />
  <label class="string optional" for="user_remember_me"> Remember me</label>

  <input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="commit" value="Sign In" />
</form>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</div>
</body>
</html>

0 个答案:

没有答案