- 博客(7)
- 收藏
- 关注
原创 判断手机端登录还是pc端登录
public function isMobile(){ // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 if (isset($_SERVER['HTTP_X_WAP_PROFILE'])) { return true; } //如果via信息含有wap则一定是移动设备,部分服务商会屏
2017-05-09 16:01:22 852
原创 apache配置ip链接
1、httpd-vhosts.conf下: DocumentRoot "D:/wamp/www/shanjie" ServerName 192.168.0.XXX ServerAlias "D:/wamp/www/shanjie"2、httpd.conf下:把deny from all中的deny改成了allow
2017-05-09 15:47:43 310
原创 图片自适应
第一种:第二种:$(function(){ if($(".cinetic_img").length > 0){ resizeBox();window.onresize = resizeBox;//当窗口改变宽度时执行此函数function resizeBox(){var winW = $('#resizeBox').width();var
2017-05-08 13:34:08 311
原创 css写箭头
第一种伙拼价.mark {position: absolute;left: 10px;top: -8px;height: 16px;color: #fff;}.mark .mar {display: block;width: 0;height: 0
2017-05-04 15:17:12 351
原创 清除浮动
.clearfix:after { content: "."; display: block; clear: both; height: 0;}.clearfix { zoom: 1;}
2017-05-04 10:49:31 243
原创 css进度条
.progress{height: 20px; background: #ebebeb; border-left: 1px solid transparent; border-right: 1px solid transparent; border-radius: 10px;width:500px;}.progress .blue{bac
2017-05-04 10:30:45 288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人