2011年8月16日

php 不支持curl 的解决方案

摘要: php curl扩展库 阅读全文

posted @ 2011-08-16 14:52 little jerry 阅读(401) 评论(0) 推荐(0)

IE6 div height DUG

摘要: 1. 在ie6中,div即便为空时,也会有一个默认的高度(约为20px),这是设置height,lineheight小于默认高度时,不起作用。2. 这个默认高度为文字高度,因此可以用font-size来定义大众网中的blank很不简单啊,要多多学习,尽量避免bug的产生/* CSS空白 */.blank1{margin:0 auto;height:1px;font-size:1px;clear:both;overflow:hidden}.blank2{margin:0 auto;height:2px;font-size:1px;clear:both;overflow:hidden}.blank 阅读全文

posted @ 2011-08-16 14:46 little jerry 阅读(446) 评论(0) 推荐(0)

CSS 使网页变灰(文字加动画)

摘要: 如果需要使网站变灰,在网页上加层滤镜就可以了。1html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }或者:1html { FILTER:gray}有的时候加上后可能不生效,是因为网站没有使用最新的网页标准协议。需要在页面里加上:<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&qu 阅读全文

posted @ 2011-08-16 14:45 little jerry 阅读(361) 评论(0) 推荐(0)

IE6的 3px现象

摘要: 在IE6中当一个对象设置为左悬浮( float:left )时,这个块对象与他右边浮上来的对象默认具有3px的margin。因此当父元素的宽度恰好为子元素的宽度的和时,后面的元素会被挤下来,打破原来的次序。解决方案:左悬浮: { float:left; margin-right:0 !important; margin-right:-3px;}右悬浮: { float:right; margin-left:0 !important; margin-left:-3px;} 阅读全文

posted @ 2011-08-16 14:44 little jerry 阅读(196) 评论(0) 推荐(0)

强制文字断行(加省略号)

摘要: 让超出的文字显示为省略号(FF不兼容,直接切断文字) 即:只可以显示五... div.wid{ width:200px; //定义div框 white-space:nowrap; //强制不换行,直至遇到<br /> text-overflow:ellipsis; //文字溢出部分用点(省略号...)代替 -o-text-overflow:ellipsis; //让opera浏览器下,文字溢出显示省略号 overflow: hidden; //溢出部分不显示 }1. white-space:规定如何处理元素内的空白 normal 正常处理 pre(保留空白) norwap(强制不换 阅读全文

posted @ 2011-08-16 14:43 little jerry 阅读(295) 评论(0) 推荐(0)

css 缩写样式

摘要: 缩写总结1.background :background-color background-image background-repeat background-attachment background-position 颜色 图片 重复(norepeat/repeate-x/repeate-y/repeate) 固定(scroll/fixed/inherit) 位置(top/left) background: #444444 url(image.png) no-repeat fixed top;2.border: border-width border-style border-color 阅读全文

posted @ 2011-08-16 14:42 little jerry 阅读(253) 评论(0) 推荐(0)

通过html标签限制搜索引擎

摘要: 网页未制作完成,或涉及隐私不能公布,限制搜索引擎收录 第一种情况:限制网页快照 限制所有的搜索引擎建立网页快照: <meta name="robots" content="noarchive"> 限制百度的搜索引擎建立网页快照: <meta name="Baiduspider" content="noarchive"> 第二种情况 :禁止搜索引擎抓取本页面,禁止搜索引擎引用页面 <meta name="robots" conrent="noindex,fo 阅读全文

posted @ 2011-08-16 14:39 little jerry 阅读(1112) 评论(0) 推荐(0)

iframe 使用

摘要: iframe标签样式 阅读全文

posted @ 2011-08-16 14:36 little jerry 阅读(291) 评论(0) 推荐(0)

导航