一、固定底部導航欄并且實現自適應
<style>
*{margin: 0px;padding: 0px}/*設置無邊距*/
img{width: 100%}
.footer{
display: flex;/*設置成盒子模型*/
width:100%;
height:70px;
background: #eeeeee;/*設置背景色*/
/*固定到底部start*/
position:fixed;/*固定作用*/
bottom:0px;
/*固定到底部end*/
/*ie6下樣式,加下劃線表示只針對ie6 的hack */
_position:absolute;/* 把導航欄位置定義為絕對位置 關鍵*/
_bottom:expression(documentElement.scrollTop + "px"); /* 把導航欄位置放在瀏覽器垂直滾動條的頂端 關鍵 */
z-index:9999; /* 讓導航欄浮在網頁的高層位置,遇到flash和圖片時候也能始終保持最外層 */
}
.footer div{width: 33.3333%;text-align: center;margin-top: 8px;}
.footer div p img{width: 30px;height: 30px;}
</style>
<div class="footer">
<div><p><img src="/static/wap/images/index/ft-1.png"></p><p>首頁</p></div>
<div><p><img src="/static/wap/images/index/ft-2-2.png"></p><p>搜索</p></div>
<div><p><img src="/static/wap/images/index/ft-3-3.png"></p><p>我的</p></div>
</div>
- 環境搭建
- centos6.5 lnmp環境搭建
- svn環境搭建
- centos lamp安裝配置
- mysql
- mysql常用命令
- mysql技術內幕
- 1.1mysql體系結構
- 1.2mysql存儲引擎
- 1.3mysql連接
- linux
- linux-常用命令
- linux下vim命令
- 第三方平臺開發
- 微信開發之旅
- php
- php框架
- lavarel常用命令
- thinkPhp常用命令
- yii2.0.8
- 安裝
- yii常用
- yii配置
- yii常用2
- php源碼積累
- php字符串截取
- php圖片處理(gd)
- 二維數組保持索引排序(高低)
- 獲取一個月首尾天數
- 時間函數
- php內置函數
- html
- js
- 基本命令
- js案例
- js去空格
- css
- 基本樣式
- 案例
- ul li 橫向水平居中自適應案例
- 固定底部導航欄并自適應
- 購物車帶角標
- display的兼容解決
- 前端框架
- boostrap
- 常用類
- git
- 上傳項目到遠程倉庫GitHub