会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ghfjj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
20
下一页
2017年8月26日
css3中 百分比宽度减去固定宽度的写法
摘要: div{ /*实现了宽度为父容器宽度减去固定的300像素*/ width:-webkit-calc(100% - 300px); width:-moz-calc(100% - 300px); width:calc(100% - 300px); }
阅读全文
posted @ 2017-08-26 22:38 ghfjj
阅读(17749)
评论(0)
推荐(0)
2017年8月23日
如何设置css3中placeholder的字体颜色
摘要: ::-webkit-input-placeholder { /* WebKit browsers */ color: #ccad1e; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #ccad1e; } ::-moz-place
阅读全文
posted @ 2017-08-23 11:39 ghfjj
阅读(1472)
评论(0)
推荐(0)
2017年8月18日
鼠标移入移除切换图片路径
摘要: <a href="#"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif" border="0" onMouseOver="this.src='http://s1.bdstatic.com/r/www
阅读全文
posted @ 2017-08-18 13:52 ghfjj
阅读(663)
评论(0)
推荐(0)
2017年8月10日
li横向并排2列排版,保证每行的两个li高度一致
摘要: li做浮动布局,左右高度不一致会出现错乱 解决: li:nth-of-type(odd){clear:both;}
阅读全文
posted @ 2017-08-10 04:49 ghfjj
阅读(1592)
评论(0)
推荐(0)
2017年7月3日
PHP 时区报错
摘要: 在代码开头设置时区: date_default_timezone_set('Asia/Shanghai');
阅读全文
posted @ 2017-07-03 11:31 ghfjj
阅读(176)
评论(0)
推荐(0)
2017年6月29日
webpack使用-打包20170629
摘要: 方式1:全部js、css等文件打包成一个主js: 只有一个主入口js文件(比如main.js),其余的js均在main.js中调用,最后webpack将该主js文件(main.js)打包成一个js(比如bundle.js),html只需引入这最后打包生成的bundle.js即可 html引入及效果
阅读全文
posted @ 2017-06-29 11:37 ghfjj
阅读(142)
评论(0)
推荐(0)
响应式布局3
摘要: 响应式布局简明示例,响应式布局最好同时也是自适应布局,然后再配合css3媒体查询,来达到完美的响应式布局。css3的媒体查询ie9一下是不支持的,这太遗憾了,不过幸运的是有大神已经为前端屌丝们写好了用于IE9以下的媒体查询脚本文件,引用方式如下:<!--[if lt IE 9]> <script s
阅读全文
posted @ 2017-06-29 08:43 ghfjj
阅读(186)
评论(0)
推荐(0)
响应式布局2
摘要:
阅读全文
posted @ 2017-06-29 08:42 ghfjj
阅读(109)
评论(0)
推荐(0)
响应式布局1
摘要:
阅读全文
posted @ 2017-06-29 08:40 ghfjj
阅读(122)
评论(0)
推荐(0)
2017年6月28日
owlCarousel 用法心得2
摘要: 自定义区间: 'itemsCustom':[[0,2],[ 400,3 ],[ 700,3 ],[ 1200,4 ],[ 1551,5 ],[ 1831,6 ]] 大于1831显示6个, 1551-1830,显示5个, 1200-1550,显示4个, 。。。。。。以此类推
阅读全文
posted @ 2017-06-28 17:07 ghfjj
阅读(2246)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
20
下一页
公告