摘要:
中文字符计算为2个字符 英文字符计算为1个 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/***可以统计中文字符串长度的函数**/functionabslength($str){$len=strlen($str);$i=0;while($i&... 阅读全文
posted @ 2010-08-08 17:10
小炒花生米
阅读(3305)
评论(0)
推荐(0)
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--@charset"utf-8";/*--------------------------------------------------------------------全局定义----------... 阅读全文
posted @ 2010-08-08 12:47
小炒花生米
阅读(2729)
评论(0)
推荐(0)
摘要:
下边是div实现两列显示没加overflow:hidden时的代码,在ie中查看效果是正常的,但在firefox中右侧的背景和边框会扩展到左侧.代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3... 阅读全文
posted @ 2010-08-08 10:59
小炒花生米
阅读(986)
评论(0)
推荐(0)
摘要:
首先我们说说firefox和IE对CSS的宽度显示有什么不同: 其实CSS’width’指的是标准CSS中所指的width的宽度,在firefox中的宽度就是这个宽度。它只包含容器中内容的宽度。而InternetExplorer’width’则是指整个容器的宽度,包括内容,padding,border。 Firefox中:容器占的宽度=内容宽度+... 阅读全文
posted @ 2010-08-08 10:54
小炒花生米
阅读(312)
评论(0)
推荐(0)
浙公网安备 33010602011771号