孩子们不在父母div中并排堆叠

时间:2016-04-29 22:11:41

标签: javascript html css

由于某种原因,视频和侧边栏div继续在包装div之外互相推送。此外,似乎主要的包装器div由于某种原因没有被定义。我现在已经乱了好几个小时,看起来没什么用。有些人可以给我一些指针。

https://jsfiddle.net/4z5wwq2j/

谢谢。



<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

<style>
 #wrapper{
  width: 100%;
  height: 500px;
  white-space: nowrap;
  display: inline-block;
   } 
 #sidebar{
  height: 420px;
  width: 10%;
  background-color: red;
 }
 #video{
    border-radius: 25px;
    background: #C5EFF7;
    border: 5px solid #19B5FE; 
    padding: 20px; 
    width: 65%;
    height: 420px;
    display: inline-block; 
 }
</style>
</head>
<body>
  <div id="wrapper">
  <div id="sidebar"></div>
  <div id="video"></div>
</div> 
</body>
</html>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

您还必须为 zSet: [0.00485, 0.02425] ----------------------------------------------------------------------------------------------------------- [35352.0, 35344.0, ..., 35396.0, 35428.0] [[35352.0, 35344.0, ..., 35396.0, 35428.0]] ----------------------------------------------------------------------------------------------------------- [35300.0, 35300.0, ..., 35444.0, 35460.0] [[35300.0, 35300.0, ..., 35412.0, 35444.0, 35460.0], [35300.0, 35300.0, ..., 35444.0, 35460.0]] ----------------------------------------------------------------------------------------------------------- list 1 [] list 2 [] zlist len 2 [Finished in 0.5s] div设置language: objective-c osx_image: xcode7.2 cache: directories: - Pods - $HOME/.cocoapods - $HOME/Library/Caches/CocoaPods ...

https://jsfiddle.net/4z5wwq2j/1/

display: inline-block;

根据需要为它们设置垂直对齐。