1
我正在開發我的網頁,我按照本教程「https://www.youtube.com/watch?v=1tdRozm__K0」。我試圖改變的唯一事情就是將文本居中。而且我一直無法做到。已經接近,但我的強迫症不會允許它。非常感謝幫助。故障排除
感謝
body {
\t width: 100%;
\t margin: auto;
\t font-family: Helvetica;
}
.header {
\t background: #383838;
\t width: 100%;
\t top: 0;
\t position: fixed;
}
.container {
\t width: 960px;
\t margin: 0 auto;
}
.logo {
\t float: center;
\t font-size: 15;
\t color: white;
}
<DOCTYPE html>
<html>
\t <head>
\t \t <title>Website</title>
\t \t <link rel="stylesheet" href="style.css" type="text/css" />
\t </head>
\t
\t <body>
\t \t <!-- IGNORE THIS! THIS IS FOR LiveReload -->
\t \t <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
\t \t <!-- IGNORE THIS! THIS IS FOR LiveReload -->
\t \t
\t \t <div class="header">
\t \t \t
\t \t \t <div class="container">
\t \t \t \t
\t \t \t \t <div class="logo">
\t \t \t \t \t <h1>WEBSITE</h1>
\t \t \t \t </div>
\t \t \t
\t \t \t </div>
\t \t
\t \t </div>
\t </body>
</html>
謝謝!我試試吧:) – tristianchase
它做到了!我如何標記爲正確?對不起,我今晚剛加入。 – tristianchase
我會的,它說我必須等2分鐘。 – tristianchase