摘要: 1.table的样式写法 2.表格定宽 有时候给表格列表定宽会发现没有效果,这时候需要一个属性 table-layout: fixed; 阅读全文
posted @ 2017-11-27 20:44 lilyliu329 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 浏览器兼容是个大大的问题! navigator.userAgent.toLowerCase() 来判断浏览器类型 js判断 ** 判断ipad: (navigator.userAgent.toLowerCase().match(/iPad/i) == "ipad") ? window.pageYOf 阅读全文
posted @ 2017-05-12 11:01 lilyliu329 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 地址:http://www.bootcss.com/p/icheck/#skins 使用 1. 先引入文件 css <link rel="stylesheet" type="text/css" href="../css/web2.0/skins/all.css"> js <script type=" 阅读全文
posted @ 2017-05-04 14:45 lilyliu329 阅读(1737) 评论(0) 推荐(0) 编辑
摘要: css3--calc()使用 css3新增的一个功能,可以计算元素的长度 例如说:一个百分百布局中,分左右两侧,中间需要一个分隔空间,使用padding或者margin则会超出100%,这时候使用calc()来计算 就很完美 calc()运算规则 1.可以使用 + - * / 四则运算 2.可以使用 阅读全文
posted @ 2017-02-24 14:26 lilyliu329 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1.使用方法 1)引入js文件 <script src="jquery.js"></script> <script src="jquery.portamento.js"></script> 2)css样式 3)html结构 <body> <div>正常布局或内容</div> <div id="sid 阅读全文
posted @ 2017-02-15 15:16 lilyliu329 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 使用 1.引入文件 <script src="js/jquery.min.js"> </script> <script src="js/jquery.easing.js"> </script> <script src="js/jquery.scrollify.min.js"></script> 2. 阅读全文
posted @ 2017-02-15 15:11 lilyliu329 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 网站上常用的“焦点图/幻灯片”“Tab标签切换”“图片滚动”“无缝滚动” 如何使用 1.引入jquery.js 引入superslider.js 2.编写HTML 以下是默认的HTMl结构,分别是 ".hd" 里面包含ul, ".bd" 里面包含ul 3.编写css 4.调用superslier 在 阅读全文
posted @ 2017-02-15 14:59 lilyliu329 阅读(1326) 评论(0) 推荐(0) 编辑
摘要: png或者jpg,与是否能显示,没有任何关系(除非有一种情况,你的jpg有问题;曾经遇到过一个编辑把gif的图片,直接改名为jpg,然后在谷歌下能看到,到IE下看不到图片,用photoshop打开再保存为jpg就好了)png和jpg的主要区别如下:1、png可以透明,jpg不能透明,所以需要透明的地 阅读全文
posted @ 2017-02-13 15:53 lilyliu329 阅读(270) 评论(0) 推荐(0) 编辑
摘要: HTML 提高页面加载速度的方法: 1. 减少http请求(合并资源文件,合并图片-精灵图) 2. 把css放文件头部,javascript放body标签尾部 3. 定义图片的宽,高 4. 避免空的src 和 href html里这样写:<a href="javascript:;" class="t 阅读全文
posted @ 2017-02-07 15:39 lilyliu329 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 兼容谷歌火狐-input光标位置 input框在没有添加任何效果的情况下,输入文字后光标始终在最后的位置,谷歌||火狐效果一样 但是在给input加入点击事件后 谷歌:input框插入文字后,光标会自动到最后位置 火狐:input框插入文字后,光标在插入文字的后面 兼容:光标在文字的最后面 兼容:光 阅读全文
posted @ 2016-11-02 16:25 lilyliu329 阅读(6219) 评论(0) 推荐(0) 编辑