摘要:
<style> .footer{position:absolute;left:0;right:0} </style> <div classs="footer"> <button>结束</button> </div> 也就是说只要给你所定位的div的类加上left:0;right:0;(margin: 阅读全文
摘要:
<style> //向上三角形 .triangle_up{ width:0; height:0; border-left:30px solid transparent; border-right:30px solid transparent; border-bottom:30px solid red 阅读全文
摘要:
<body> <div class="header"></div> </div> <div style="positon:fixed; bottom:0" class="footer"></div> 阅读全文
摘要:
想做一个语音界面,当长按语音按钮的时候,总会出现移动端什么复制粘贴菜单。然后在JS中加入return false后就消失了,感觉好神奇哦~ 阅读全文
摘要:
<!DOCTYPE html><!--[if lt IE 7]> <html dir="ltr" lang="en-US" class="ie6"> <![endif]--><!--[if IE 7]> <html dir="ltr" lang="en-US" class="ie7"> <![end 阅读全文
摘要:
前些天做页面时候遇到这样一个问题,将input框用position:fixed固定定位在最底部的时候,当Input获取焦点的时候,input框离开了手机软键盘,而不是吸附在软键盘上,效果如下图: 找了很多方法尝试,最后是用css解决的。 就是给input框所在div的以外代码块一个position: 阅读全文