手机页面页脚代码

      做了几个手机页面,需要页脚版权声明,用JS统一处理了:

$("#wrap").append("<footer class='footer navbar-fixed-bottom' style='background:#E0E0E0;'>"+
			    "<div class='container' style='text-align:center;margin-top:5px;margin-bottom:5px;'>"+
			    	"本服务由XXX提供"+
			    "</div>"+
			    "</footer>")


.navbar-fixed-top,
.navbar-fixed-bottom {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
}

@media (min-width: 768px) {
  .navbar-fixed-top,
  .navbar-fixed-bottom {
    border-radius: 0;
  }
}

.navbar-fixed-top {
  top: 0;
  border-width: 0 0 1px;
}

.navbar-fixed-bottom {
  bottom: 0;
  margin-bottom: 0;
  border-width: 1px 0 0;
}



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
网页设计的代码可以使用HTML、CSS和JavaScript来完成。以下是一个简单的示例: HTML代码: ``` <!DOCTYPE html> <html> <head> <title>手机端网页</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <header> <h1>我的手机网页</h1> <nav> <ul> <li><a href="#">首页</a></li> <li><a href="#">产品</a></li> <li><a href="#">关于我们</a></li> </ul> </nav> </header> <main> <section> <h2>欢迎来到我的手机网页</h2> <p>这是一个简单的示例网页,用于演示如何在手机上创建网页。</p> </section> <section> <h2>我们的产品</h2> <ul> <li>产品1</li> <li>产品2</li> <li>产品3</li> </ul> </section> <section> <h2>关于我们</h2> <p>我们是一家专注于手机应用开发的公司。</p> </section> </main> <footer> <p>©2021 我的手机网页</p> </footer> </body> </html> ``` CSS代码(style.css): ``` * { box-sizing: border-box; margin: 0; padding: 0; } header { background-color: #333; color: #fff; padding: 10px; } nav ul { list-style: none; margin: 0; padding: 0; } nav li { display: inline-block; margin-right: 10px; } nav a { color: #fff; text-decoration: none; } main { padding: 10px; } section { margin-bottom: 20px; } h1, h2 { font-size: 24px; margin-bottom: 10px; } ul { list-style: none; margin: 0; padding: 0; } footer { background-color: #333; color: #fff; padding: 10px; text-align: center; } ``` 这个示例包括一个简单的头部、导航栏、主要内容和页脚。使用meta标记来确保页面手机上显示正确,并使用CSS来添加样式。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值