漂定

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年12月25日

摘要: 一. Webkit浏览器(1) 第一种写法:background:-webkit-gradient(linear ,10% 10%,100% 100%,color-stop(0.14,rgb(255,0,0)),color-stop(0.5,rgb(255,255,0)),color-stop(1,rgb(0,0,255)));第一个参数:表示的是渐变的类型linear线性渐变第二个参数:分别对应x,y方向渐变的起始位置第三个参数:分别对应x,y方向渐变的终止位置第四/五/N个参数:设置渐变的位置及颜色(2)第二种写法:这种写法比较简单,而且效果比较自然background:-webkit-g 阅读全文
posted @ 2013-12-25 13:02 漂定 阅读(29225) 评论(0) 推荐(0) 编辑

摘要: 查询utf-8的编码规范最高字节0xxx xxxx , 1个字节110xx xxxx , 2个字节1110 xxxx, 3 3个字节1111 0xxxx 4... 4个字节......'; $res .= substr($str,$offset,$count); $chars += 1; $offset += $count; } return $res;}echo utf8sub($str,200);?> 阅读全文
posted @ 2013-12-25 10:35 漂定 阅读(231) 评论(0) 推荐(0) 编辑