Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/386.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
Javascript 列类中超出该类的引导面板_Javascript_Html_Twitter Bootstrap_Panel - Fatal编程技术网

Javascript 列类中超出该类的引导面板

Javascript 列类中超出该类的引导面板,javascript,html,twitter-bootstrap,panel,Javascript,Html,Twitter Bootstrap,Panel,我试图在col-sm-6列中创建一个面板 有没有办法让面板标题和面板内容不出现在第1列 以下是我目前的代码: <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=de

我试图在
col-sm-6
列中创建一个面板

有没有办法让面板标题和面板内容不出现在第1列

以下是我目前的代码:

<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Bootstrap Example</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
   </head>
   <body>
      <div class="container-fluid">
         <div class="row">
            <div class="col-sm-6" style="background-color:lavender;">
               .col-sm-6
               <div class="container">
                  <h3>Panel Heading</h3>
                  <div class="panel panel-default">
                     <div class="panel-heading">Panel Heading
                     </div>
                     <div class="panel-body">Panel Content
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-sm-6" style="background-color:lavenderblush;">.col-sm-6</div>
            </div>
      </div>
   </body>
</html>


将此代码用于车身:


.col-sm-6
小组标题
小组标题
面板内容
.col-sm-6

将此代码用于车身:


.col-sm-6
小组标题
小组标题
面板内容
.col-sm-6

在嵌套
的位置,将其上的类更改为
,以便嵌套
,然后面板被限制在6个网格单元的第一列。这就是您想要的吗?.container是一个默认的bs类,主要用于将站点包装到定义的设备宽度。在嵌套
的位置,将其上的类更改为
,以便嵌套
,然后面板被限制在6个网格单元的第一列。这就是您想要的吗?.container是默认的bs类,主要用于将站点包装到定义的设备宽度。
.container{
    position: absolute;
}