gpt4 book ai didi

html - 静态和响应式页脚 Bootstrap

转载 作者:行者123 更新时间:2023-11-28 15:19:19 26 4
gpt4 key购买 nike

我制作了一个简单的页面来查看带有一些图标和底部页脚的视频。我向其中添加了页脚类 Bootstrap ,但我仍然没有在不同屏幕的同一位置看到页脚

这是我的 HTML:

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="css/full.css" type="text/css">
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">


</head>
<body class="full">
<div class="container">


<br>

<p class="text-center" id="paragraph">Please Make Sure Your Sound Is Turned Up! Please wait up to 10 seconds for this video to load. Thank You!</p>
<center>
<div class="embed-responsive embed-responsive-16by9">
<video autoplay loop class="embed-responsive-item">
<source src="video.mp4" type="video/mp4">
</video>
</div>
<i class="fa fa-facebook-official" aria-hidden="true" id="face"></i>
<i class="fa fa-twitter" aria-hidden="true" id="twitter"></i>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" id="mybutton">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="">
<input type="image" src="images/order.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</center>
</div>

<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.js"></script>
</div>
<div class="footer">
<nav class="navbar navbar-default" role="navigation">
<div class="collapse navbar-collapse navbar-ex1-collapse" id="footer">
<ul class="nav navbar-nav">
<li><a href="disclaimer.htm">Disclaimer</a></li>
<li><a href="earnings.htm">Earnings</a></li>
<li><a href="privacy.htm">Privacy</a></li>
<li><a href="tos.htm">Tos</a></li>

</ul>
</div><!-- /.navbar-collapse -->
</nav>
</div>
</body>

</html>

这是CSS:

.full {
background: url('../images/bg2.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}

#border{
max-height: 400px;
align:center;
border-style: solid;
border-color: #ff0000
}
#paragraph{
font-weight: bold;
font-size: 30px;
color:red;
}
.navbar .navbar-nav {
display: inline-block;
float: none;
vertical-align: top;
}

.navbar .navbar-collapse {
text-align: center;
}


#face {
color:#3b5998;
text-shadow: 1px 1px 1px #ccc;
font-size: 2.5em;
}
#twitter {
color:#0084b4;
text-shadow: 1px 1px 1px #ccc;
font-size: 2.5em;
}

页脚随着屏幕尺寸的变化而不断改变它的位置的问题。

最佳答案

您在页脚和类 collapse 中使用默认 Bootstrap 导航意味着导航将在较低分辨率下隐藏,因为 Bootstrap 然后添加响应菜单。

因此,如果您想在所有分辨率下查看导航,请从中删除 collapse 类。像这样:

<div class="navbar-collapse navbar-ex1-collapse" id="footer">

更新

对于页脚修复,请在此处检查示例 https://jsfiddle.net/xuhL8v4v/

关于html - 静态和响应式页脚 Bootstrap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37846837/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com