Html 防止液体/响应式潜水器漂浮

Html 防止液体/响应式潜水器漂浮,html,navigation,responsive-design,css-float,fluid-layout,Html,Navigation,Responsive Design,Css Float,Fluid Layout,在过去的两周里,我在这里读了很多答案,但似乎找不到解决问题的正确方法。有人能帮忙吗 我正在尝试建立我的第一个响应式网站,并使用Dreamweaver的流体模板。但是,我无法阻止右下对齐的导航与顶部徽标和标语div层重叠,也无法使导航表在手机上查看时缩小 我有一个gridContainer,每个gridContainer上有三个800px宽的div(当在较小的门户上查看时,这些div会缩小以适应): Div id:标题 部门id:徽标和 Div id:tag 在此下方,我有三个左浮动较窄的div(

在过去的两周里,我在这里读了很多答案,但似乎找不到解决问题的正确方法。有人能帮忙吗

我正在尝试建立我的第一个响应式网站,并使用Dreamweaver的流体模板。但是,我无法阻止右下对齐的导航与顶部徽标和标语div层重叠,也无法使导航表在手机上查看时缩小

我有一个gridContainer,每个gridContainer上有三个800px宽的div(当在较小的门户上查看时,这些div会缩小以适应):
Div id:标题
部门id:徽标和
Div id:tag

在此下方,我有三个左浮动较窄的div(60%宽)(在较小的门户上查看时,这些div会缩小以适应):
Div id:body
Div id:边框和
部门编号:布库斯

最后,一个导航分区(30%宽):
部门id:联系人

此导航div是一个滚动图像表,这些图像是一堆板条箱的图像,其中每个板条箱都是一个链接。因此,我需要它保持在浏览器窗口的底部,无论它打开到多大,但如果窗口的大小调整为更小,也不要与徽标和标记div重叠。(对于较小的门户,我无法使其按比例缩小)

这是我的CSS(很抱歉,我不知道需要多少信息):

以下是导航表的html源代码(是否需要添加更多内容?)



事先非常感谢你

欢迎来到SO。仅仅阅读你对这个问题的描述是很难理解的。。有一些站点(jsfiddle、jsbin、codepen)可以用来重现您遇到的问题。请考虑在你的问题上做一个在线的例子,帮助你更容易地感谢你的SKIP405。我刚刚尝试过使用jsfiddle、jsbin和codepen,但我不知道如何将我的网站的图片上传到它上,以便查看问题?不知何故,我似乎已经解决了使较小门户的导航缩小的问题,但是,我仍然存在底部导航div(id contacts)在某些大小上与徽标和标语div重叠的问题,并且该div并不总是保持在底部。我应该发布整个html吗?这有帮助吗?或者你需要从代码中得到什么特别的东西?实际上我已经在这里加载了它,如果这有帮助的话?
/* Mobile Layout: 480px and below. */

.gridContainer {
margin-left: auto;
margin-right: auto;
width: 84.9333%;
min-height: 600px;
padding-left: 3.0333%;
padding-right: 3.0333%;
padding-top: 3.0333%;
padding-bottom: 0;
top: 10%;
}

#header {
clear: both;
float: left;
margin-left: 0;
margin-top: 15%;
margin-bottom: 10px;
width: 60%;
height: auto;
display: block;

}

#logo {
clear: both;
float: left;
margin-left: 0;
margin-top: 10%;
width: 60%;
height: auto;
display: block;

}

#tag {
clear: both;
float: left;
margin-left: 0;
margin-bottom: 10px;
width: 60%;
height: auto;
display: block;
}

#body {
clear: both;
float: left;
margin-left: 0;
margin-top: 10px;
margin-bottom: 0px;
width: 60%;
display: block;
}

#border {
clear: both;
float: left;
margin-left: 0;
width: 60%;
display: block;
}

#bookus {
clear: both;
float: left;
margin-left: 0;
margin-top: 10px;
margin-bottom: 0px;
width: 60%;
display: block;
}

#contact {
clear: both;
float: right;
margin-right: 0;
margin-top: 10px;
margin-left: 60%;
margin-bottom: 0;
width: 30%;
height: auto;
display: block;
position: absolute;
bottom: 0;
min-height: 158px;
min-width: 132px;
table-layout:auto;
}


/* Tablet Layout: 481px to 768px. Inherits styles from: Mobile Layout. */

@media only screen and (min-width: 481px) {

.gridContainer {
width: 86.8%;
min-height: 800px;
max-height: 100%;
padding-left: 3.1%;
padding-right: 3.1%;
padding-top: 3.1%;
padding-bottom: 0;
top: 10%;
}

#header {
clear: both;
float: left;
margin-left: 0;
margin-top: 15%;
margin-bottom: 10px;
width: 80%;
height: auto;
display: block;

}

#logo {
clear: both;
float: left;
margin-left: 0;
margin-top: 10%;
margin-bottom: 5px;
width: 80%;
height: auto;
display: block;

}

#tag {
clear: both;
float: left;
margin-left: 0;
margin-bottom: 5px;
width: 80%;
height: auto;   
display: block;
}

#body {
clear: both;
float: left;
margin-left: 0;
margin-top: 10px;
margin-bottom: 0px;
width: 60%;
display: block;
}

#border {
clear: both;
float: left;
margin-left: 0;
width: 60%;
display: block;
}

#bookus {
clear: both;
float: left;
margin-left: 0;
margin-top: 10px;
margin-bottom: 0px;
width: 60%;
display: block;
}

#contact {
clear: both;
float: right;
margin-right: 0;
margin-left: 60%;
margin-top: 10px;
margin-bottom: 0;
width: 30%;
display: block;
position: absolute;
bottom: 0;
min-height: 158px;
min-width: 132px;
table-layout:auto;

}

}


/* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */

@media only screen and (min-width: 769px) { 

.gridcontainer {
width: 84%;
max-width: 800px;
min-height: 800px;
max-height: 1180px;
padding-left: 3%;
padding-right: 3%;
padding-top: 3%;
padding-bottom: 0;
margin: auto;
top: 10%;
}

#header {
clear: both;
float: left;
margin-left: 0;
margin-top: 15%;
margin-bottom: 10px;
width: 100%;
display: block;

}

#logo {
clear: both;
float: left;
margin-left: 0;
margin-top: 10%;
margin-bottom: 10px;
width: 100%;
height: auto;
display: block;

}

#tag {
clear: both;
float: left;
width: 100%;
height: auto;
margin-left: 0;
margin-bottom: 10px;
display: block;
}

#body {
clear: both;
float: left;
margin-left: 0;
margin-top: 0px;
margin-bottom: 10px;
width: 60%;
display: block;
}

#border {
clear: both;
float: left;
margin-left: 0;
width: 60%;
display: block;
}

#bookus {
clear: both;
float: left;
margin-left: 0;
margin-top: 10px;
margin-bottom: 0px;
width: 60%;
display: block;
}

#contact {
clear: both;
float: right;
margin-right: 30%;
margin-left: 50%;
margin-top: 10px;
margin-bottom: 0;
width: 30%;
height: 30%;
min-height: 158px;
min-width: 132px;
display: block;
position: absolute;
bottom: 0px;
table-layout:auto;
}

}
<div class="contact" id="contact" align="right">
<table width="100%" height="100%"border="0" cellspacing="0" cellpadding="0" style="position:absolute; bottom:0;height:auto; width:auto; max-width:265px; max-height:296px;">
  <tr>
    <td><a href="mailto:email@url.co.uk" target="_blank"><img src="00_assets/buttons/00_BUTTONS_EMAIL.png" alt="email us" name="email" width="265" height="86" id="email" onMouseOver="MM_swapImage('email','','00_assets/buttons/00_BUTTONS_EMAILO.png',1)" onMouseOut="MM_swapImgRestore()" border="0" align="absbottom" style="height:auto; width:auto; max-width:265px; max-height:86px;"></a></td>
  </tr>
  <tr>
    <td><a href="tel:+123-456-7890" target="_blank"><img src="00_assets/buttons/00_BUTTONS_CALL.png" alt="call us" name="call" width="265" height="70" id="call" onMouseOver="MM_swapImage('call','','00_assets/buttons/00_BUTTONS_CALLO.png',1)" onMouseOut="MM_swapImgRestore()" border="0" align="absbottom" style="height:auto; width:auto; max-width:265px; max-height:70px;"></a></td>
  </tr>
  <tr>
    <td><a href="https://www.url.com/" target="_blank"><img src="00_assets/buttons/00_BUTTONS_FB.png" alt="like us" name="fb" width="265" height="70" id="facebook" onMouseOver="MM_swapImage('facebook','','00_assets/buttons/00_BUTTONS_FBO.png',1)" onMouseOut="MM_swapImgRestore()" border="0" align="absbottom" style="height:auto; width:auto; max-width:265px; max-height:70px;"></a></td>
  </tr>
  <tr>
    <td><a href="https://twitter.com/intent/tweet?screen_name=twitterid" target="_blank"><img src="00_assets/buttons/00_BUTTONS_TWEET.png" alt="mention us" name="tweet" width="265" height="70" lowsrc="00_assets/buttons/00_BUTTONS_EMAILO.png" id="tweet" onMouseOver="MM_swapImage('tweet','','00_assets/buttons/00_BUTTONS_TWEETO.png',1)" onMouseOut="MM_swapImgRestore()" border="0" align="absbottom" style="height:auto; width:auto; max-width:265px; max-height:70px;"></a></td>
  </tr>
</table>