html - 我需要一些帮助,这个页脚没有我想要的响应
问题描述
这是我在前端不太好的代码所以我正在寻找使此页脚响应的小触摸链接和字体可怕的图标在移动屏幕上出现问题没有响应或如果屏幕发生变化则位置发生变化
<div class="jumbotron" style="margin-bottom: 0px; background-color: #f4f4f4;height:100%;">
<div>
<hr style="border-top:3px solid #bc2f8d; float: left;margin-left: 30px; margin-top: -15px; text-align: left;" width="30%">
<hr style="border-top:3px solid #bc2f8d; float: right;margin-right: 30px; margin-top: -15px; text-align: right;" width="30%">
</div>
<h3 class="text-center" style="margin-top:0;">Bahget Dar <i class="fas fa-home" style="color:#BC2F8D"></i></h3>
<h5 class="text-center" style=";color:black;">make your home best.</h5>
<h5 class="text-center" style="color: #0d0d0d"> contact us at <strong>011175697903</strong></h5>
<div class="icon-bar" style="text-align: right;width: 200px;margin-right: 120px; font-size: 25px; float: right">
<h5 style="margin-right: 19px;">Follow us</h5>
<a href="https://www.facebook.com"><i class="fab fa-facebook-f" style="background:#f4f4f4;color: #3B5998; "></i></a>
<a href="https://www.instgram.com"><i class="fab fa-instagram" style="color: transparent;background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);background:-webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);background-clip: text;-webkit-background-clip: text;"></i></a>
<a href="https://wwww.twitter.com"><i class="fab fa-twitter" style="color:#0095ff;text-shadow: 1px 1px 1px #ccc;"></i></a>
</div>
<div class="row" style="float: unset;margin-top:8px;margin-left: 10px; margin-right: 0; max-width: 200px;" >
<div class="col-sm-4 text-left" >
<ul style="list-style: none;">
<li style="text-decoration: none; width:90px;margin-left: 49px;"><a style="color:black;">Contact Us</a></li>
<li style="width: 40px;margin-left: 49px;"><a style="color: black">Products</a></li>
<li style="width: 40px;margin-left: 49px;"><a style="color: black">About</a></li>
</ul>
</div>
</div>
<h6 class="text-center" style="position: relative;margin-bottom: -34px;">Copyright © <strong><a>M.Nabih</a></strong></h6>
解决方案
请看这篇文章https://www.w3schools.com/html/html_responsive.asp这将帮助您理解响应式设计,特别是使用宽度和边距的百分比。
我修复了您的代码,现在应该按照您的需要响应,由于类名,字体真棒图标没有显示。
<div class="jumbotron" style="margin-bottom: 0px; background-color:
#f4f4f4;height:100%;">
<div>
<hr style="border-top:3px solid #bc2f8d; float: left;margin-left: 30px;
margin-top: -15px; text-align: left;" width="30%">
<hr style="border-top:3px solid #bc2f8d; float: right;margin-right: 30px;
margin-top: -15px; text-align: right;" width="30%">
</div>
<h3 class="text-center" style="margin-top:0;">Bahget Dar <i class="fa fa-home" style="color:#BC2F8D"></i></h3>
<h5 class="text-center" style=";color:black;">make your home best.</h5>
<h5 class="text-center" style="color: #0d0d0d"> contact us at
<strong>01111111111</strong></h5>
<div class="icon-bar" style="text-align: right;width: 49%;margin-right: 8%; font-size: 25px; float: right">
<h5 style="margin-right: 12px;">Follow us</h5>
<a href="https://www.facebook.com"><i class="fa fa-facebook-f" style="background:#f4f4f4;color: #3B5998; "></i></a>
<a href="https://www.instgram.com"><i class="fa fa-instagram" style="color: transparent;background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);background:-webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);background-clip: text;-webkit-background-clip: text;"></i></a>
<a href="https://wwww.twitter.com"><i class="fa fa-twitter" style="color:#0095ff;text-shadow: 1px 1px 1px #ccc;"></i></a>
</div>
<div class="row" style="float: unset;margin-top:8px;margin-left: 1%; margin-right: 0; max-width: 49%;min-width: 130px;" >
<div class="col-sm-4 text-left" >
<ul style="list-style: none;padding-left: 0px;">
<li style="text-decoration: none; margin-left: 20%;"><a style="color:black;">Contact Us</a></li>
<li style=" margin-left: 20%;"><a style="color: black">Products</a>
</li>
<li style=" margin-left: 20%;"><a style="color: black">About</a>
</li>
</ul>
</div>
</div>
<h6 class="text-center" style="position: relative;margin-bottom: -34px;">Copyright © <strong><a>M.Nabih</a></strong></h6>
推荐阅读
- closedxml - 使用 closedxml 在数据透视表中插入计算字段
- javascript - 有没有办法在使用 React 拖动图像时移动图像本身?
- laravel - 如何在 Laravel 8 中设置 JWT 令牌的有效期?
- arm - 霓虹移位指令,向量可以按向量移位吗?
- appium - 不立即接受带有分隔符的电子邮件收件人字段中的亚行输入文本
- javascript - 请帮忙!Firebase 和 Vuex 超出了最大调用堆栈大小
- javascript - 如何在特定秒数后停止 setInterval?- clearInterval 没有在条件下激活,例如:if (count > 3)
- laravel-5 - 错误的方法调用异常 Laravel
- javascript - 如果数据单元格在 React 中有省略号,如何显示工具提示
- django - Django Channels - 无法在断开连接时发送消息