2017-08-27 49 views
-1

我想重建我的網站使用引導程序,但我目前面臨的早期階段的問題,偏移量不起作用,我一直在尋找關於這個問題,但沒有解決方案爲我工作。 我也嘗試過以前的語法class =「col-md-4 col-md-offset-4」但它沒有工作,是否有更新的命令?另一個Bootstrap 4.0偏移量不工作

<!DOCTYPE html> 
 
<html> 
 
    <head> 
 
     <!--Charset and Responsive --> 
 
     <meta charset="utf-8"> 
 
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 
 
     <meta http-equiv="x-ua-compatible" content="ie=edge"> 
 
     <!--Bootstrap Css--> 
 
     <link rel="stylesheet" href="css/bootstrap.min.css"> 
 
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> 
 
    </head> 
 
    <body> 
 
     <div class="container" style="margin:15% auto;"> 
 
      <div class="row" style="background-color:black"> 
 
       <div class="col-md-4 offset-md-4" style="background-color:green"> 
 
        <div class="panel panel-default" > 
 
         <div class="panel-body"> 
 
          <form method="post" id="logForm"> 
 
           <div id="info"></div> 
 
           <div class="form-group"> 
 
            <label for="email">Email</label> 
 
            <input type="text" id="email" name="email" placeholder="Email" class="form-control"/> 
 
           </div> 
 
           <div class="form-group"> 
 
            <label for="pass">Mot de Passe</label> 
 
            <input type="password" id="pass" name="pass" placeholder="Mot de Passe" class="form-control"/> 
 
           </div> 
 
           <div class="form-group"> 
 
            <input type="submit" id="login" name="login" value="Login" class="btn btn-primary"/> 
 
           </div>       
 
          </form> 
 
         </div> 
 
        </div> 
 
       </div> 
 
      </div> 
 
     </div> 
 
     <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> 
 
     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> 
 
     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script> 
 
    </body> 
 
</html>

+0

只是稍微向上 – Physics

回答