Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 引导单页应用程序布局_Html_Css_Twitter Bootstrap_Single Page Application - Fatal编程技术网

Html 引导单页应用程序布局

Html 引导单页应用程序布局,html,css,twitter-bootstrap,single-page-application,Html,Css,Twitter Bootstrap,Single Page Application,如何实现单页应用程序布局,如引导中的附加图像 注意:任何操作都只替换容器 这可能会对您有所帮助!我不想让你泄气,所以回答这个问题但下次请务必阅读 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="v

如何实现单页应用程序布局,如引导中的附加图像

注意:任何操作都只替换容器


这可能会对您有所帮助!我不想让你泄气,所以回答这个问题但下次请务必阅读

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Bootstrap 101 Template</title>


<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
<style>
// styles here 
body, html{
  height:100%;
}
.red{
  background: red;
}
.theheader{
  height: 50px;
}
.thecontainer{
  height:100%;
}
.h100{
  height: calc(100% - 50px);
}
.leftbar{
  background: green;
  height:100%;
}
.rightbar{
  background: blue;
  height:100%;
}</style>
  </head>
  <body>
    <div class="container-fluid thecontainer">
    <div class="row red theheader">
      <div class="col-md-12">
        Header here 
      </div>
      </div>

    <div class="row h100">
      <div class="col-md-3 leftbar">
        left side
      </div>
        <div class="col-md-9 rightbar">
          left side
      </div>
      </div>
    </div>

  </body>
</html>

引导101模板
//这里的风格
正文,html{
身高:100%;
}
瑞德先生{
背景:红色;
}
.标题{
高度:50px;
}
.容器{
身高:100%;
}
.h100{
高度:计算(100%-50px);
}
.leftbar{
背景:绿色;
身高:100%;
}
.rightbar{
背景:蓝色;
身高:100%;
}
标题在这里
左侧
左侧

是的,当然!谢谢您