我正在用Bootstrap構建個人網站,但遇到了無法找到解決方案的問題。我看過各種教程,只是簡單網頁的基本框架。但是,頁面的左端似乎超出了屏幕的左邊緣,並且將滾動條向右移動,使頁面超出了jumbotron標題的邊緣。Bootstrap HTML頁面向左延伸超出屏幕
如何將頁面居中在屏幕上?
這裏是我的完整代碼:
<!DOCTYPE html>
<html>
<head>
<title>My Name</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
rel="stylesheet">
</head>
<body>
<div class="jumbotron text-center">
<h1>My Name</h1>
</div>
<div class="row">
<h2>What I've Been Up To</h2>
</div>
</body>
<footer>
<p> Copyright ©
<!--Script displays the current year-->
<script type="text/javascript">
var d = new Date()
document.write(d.getFullYear())
</script>
</p>
</footer>
</html>