上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 98 下一页
摘要: css3 line-height:0的作用 方案1 给img 设置为display:block img{display:block} 第二种办法就是给外层的div添加line-height 设置为0 (none)也一样 div{line-height:0;} 阅读全文
posted @ 2021-03-12 11:02 newmiracle宇宙 阅读(275) 评论(0) 推荐(0)
摘要: <div style="width:100px; height:0px;background:#000"> <div style="width:100px; height:100px;background:#FF0"> </div> </div> <div style="width:100px; h 阅读全文
posted @ 2021-03-12 10:59 newmiracle宇宙 阅读(301) 评论(0) 推荐(0)
摘要: php pack的理解 $bin_str = pack('n', 97); 把97当成整数转化成二进制 然后二进制转化成二进制字符串 ascii码对应的字符 pack("C3",80); 把80看错字符 然后二进制转化成二进制字符串 ascii码对应的字符 其实就是编码转化 最终转成ascii码 对 阅读全文
posted @ 2021-03-10 17:30 newmiracle宇宙 阅读(279) 评论(0) 推荐(0)
摘要: PHP类里面调用全局的方法 <?php namespace foo; class xs{ public function xsss(){ xsss(); } } function xsss(){ echo 'wefffx'; exit(); } $xs=new xs(); $dd=$xs->xsss 阅读全文
posted @ 2021-03-10 14:32 newmiracle宇宙 阅读(318) 评论(0) 推荐(0)
摘要: PHP设计模式依我之见 虽然有24大设计模式 简单看了下 我并不喜欢 因为太难用了 我觉得只要满足面向对象原则就是一个好的设计模式 第一个最重要的原则就是单一职责原则 每个类都有自己的职责 这个职责当然要根据需求来划分 当然一般分的细一点比较好 以后方便维护 比方说用户支付商品 有微信支付 支付宝支 阅读全文
posted @ 2021-03-09 13:20 newmiracle宇宙 阅读(52) 评论(0) 推荐(0)
摘要: javascript检测内存泄漏的方法 这个线条是上升状态的 明显就是内存 内存满了 浏览器就是崩溃的时候 如果要知道哪个代码引擎的 只能用排除法 阅读全文
posted @ 2021-03-08 14:09 newmiracle宇宙 阅读(403) 评论(0) 推荐(0)
摘要: php io多路复用 1 首先说明 io多路复用只是为了在服务端上更方便更快速的读取数据 五种网络IO模型目录 前段时间,我有个朋友因为拿快递和家里闹别扭了,今天我就借这事来讲讲五大网络模型 阻塞IO模型第一天: 刘:今天因为拿快递被我妈骂了一顿 我:说来听听 刘:我本来在家里打扫家务,后来我妈让我 阅读全文
posted @ 2021-03-06 08:54 newmiracle宇宙 阅读(281) 评论(0) 推荐(0)
摘要: css3 pointer-events:auto;详解 <style type="text/css"> #div_grandfather{ height : 250px; background: orange; width:300px; border:1px solid; pointer-event 阅读全文
posted @ 2021-03-04 14:20 newmiracle宇宙 阅读(2665) 评论(0) 推荐(0)
摘要: svg双重动画的方法 <p> <svg> <g> <rect id="Rectangle-1" fill="#3C81C1" sketch:type="MSShapeGroup" x="0" y="0" width="100" height="125"> <animatetransform attr 阅读全文
posted @ 2021-03-03 12:22 newmiracle宇宙 阅读(614) 评论(0) 推荐(0)
摘要: PHP static::的用法 <?php class a{ static protected $test="class a"; public function static_test(){ echo static::$test; // Results class b echo self::$tes 阅读全文
posted @ 2021-03-02 10:39 newmiracle宇宙 阅读(463) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 98 下一页