小编use*_*845的帖子

使用javascript旋转div

我想点击一个div并旋转另一个div然后再次点击第一个div时另一个div旋转回原来的位置.

如果需要,我可以参考这个库http://ricostacruz.com/jquery.transit.

javascript rotation jquery-transit

30
推荐指数
3
解决办法
9万
查看次数

为什么从div中删除边框会破坏我的布局?

我有一个粘性页脚的网站,我想在我的contentContainer顶部有一个背景图片.边框很好,但如果我从内容"薄蓝色固体"删除边框整个事情被推下来,我的背景图像不再在顶部...

<div id="mainContain">
    <div id="header"></div>     
    <div id="contentContain">
        <div id="content">
            <h2>Hog</h2>
        </div>  
    </div>
    <div id="footer"></div>
</div>
Run Code Online (Sandbox Code Playgroud)

我的CSS是:

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
}
#mainContain {
    min-height: 100%;
    position:relative;
}

#header {
    width: 100%;
    height: 180px;
    background-color: #111111;
}

#contentContain {
    background-image: url('../img/shadow-bg.png');
    background-position: center top;
    background-repeat: no-repeat;
    padding-bottom: 45px;   /* This value is the height of your footer */
}

#content {
    margin: auto;
    border: thin blue solid;
}

#footer {
      position: absolute;
      Width: 100%;
      bottom: 0; …
Run Code Online (Sandbox Code Playgroud)

css border

6
推荐指数
1
解决办法
2104
查看次数

标签 统计

border ×1

css ×1

javascript ×1

jquery-transit ×1

rotation ×1