我编写了以下基本HTML代码,包括bootstrap 3。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"
<title>Title</title>
<!-- Bootstrap Core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Style for this page -->
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div id="site-wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">MEDIFAKTOR server</a>
</div> <!-- Navbar Header -->
</nav>
</div> <!-- Site Wrapper -->
</body>
</html>
但无论我改变什么,标题也会显示在文档的正文中。我检查了丢失的标签。我还想念别的吗?
答案 0 :(得分:7)
关闭您的视口元标记。
<meta name="viewport" content="width=device-width, initial-scale=1.0">