position:fixed
屬性失效。div
(相似於底部下載app),裏面有background-img
。百度app一進頁面就被關閉了。緣由是,百度認爲咱們是在推送廣告,被他們檢測到了。下午同事反饋給信息,說是宣傳部門本身作的h5宣傳頁有問題。kuangkuang扔給我一個zip包,打開一看,index.html,js,images
。趕忙放在nginx下用手機訪問試了試,看了看別人的代碼。會不會是須要主動觸發,會不會是須要基於top
定位等等,胡亂試了半天,都很差使。html
結果,是由於,底部的div
高度小於150px
的時候,百度就會認爲是彈窗廣告,進而關閉。nginx
fixed
的div
高度大於150px
就能夠了,改了下別人代碼,告訴他爲啥,讓她本身去弄吧。bash
.footer {
display: none;
position: fixed;
bottom: -8px;
left: 0px;
right: 0px;
width: 375px;
height: 150px;
background: url("./images/xd-img.png") no-repeat;
background-size: 375px 136px;
background-position: bottom;
}
複製代碼
對,大於等於150px就好使了!!!!app
到最後,發現他們的移動端是基於px的,不用適配機型的