2012年7月24日

摘要: 1.区别IE和非IE浏览器#tip{background:blue; /*非IE背景蓝色*/background:red\9; /*IE6、IE7、IE8背景红色*/margin-top:10px\0; /*IE8、IE9*/background:blue\9\0; /*IE9*/}2.区别IE6、IE7、IE8、Firefox[区别符号]:[ \9 ]、[ * ]、[ _ ]、[ \0 ][示例]:#tip{background:blue; /*FF背景蓝色*/background:red\0; /* IE8、IE9背景红色*/background:blue\9\0; /*IE9*/* b. 阅读全文
posted @ 2012-07-24 13:33 mustardpeanut 阅读(252) 评论(0) 推荐(0) 编辑

2012年7月23日

摘要: 文件名命名乱码的问题:$ua=$_SERVER['HTTP_USER_AGENT'];if(preg_match('/MSIE/',$ua)){$file_name=str_replace('+','%20',urlencode($file_name));}文件内容有中文字符的:header('Content-Type:application/csv;charset=UTF-8');//application/vnd.openxmlformats-officedocument.spreadsheetml.sheet 阅读全文
posted @ 2012-07-23 13:34 mustardpeanut 阅读(1988) 评论(0) 推荐(0) 编辑

2011年8月1日

摘要: 原文地址:http://ssh-2009-126-com.javaeye.com/blog/599480 在源代码编辑器和所见即所得编辑器之间进行切换 Java代码 <form method="post" action="somepage"> <textarea name="content" style="width:100%"> </textarea> <a href="#" onclick="tinyMCE.execCommand(' 阅读全文
posted @ 2011-08-01 18:26 mustardpeanut 阅读(346) 评论(0) 推荐(0) 编辑
 
摘要: 原文地址:http://ssh-2009-126-com.javaeye.com/blog/599501 Java代码 <script type="text/javascript" src="<your installation path>/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> // Creates a new plugin class and a custom listbox tinymce.cr 阅读全文
posted @ 2011-08-01 18:26 mustardpeanut 阅读(364) 评论(0) 推荐(0) 编辑
 
摘要: tinymce 应用 一 原文地址:http://ssh-2009-126-com.javaeye.com/blog/599447 添加去除Tool Bar Java代码 <script type="text/javascript" src="<your installation path>/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ mode : "textare 阅读全文
posted @ 2011-08-01 18:25 mustardpeanut 阅读(384) 评论(0) 推荐(0) 编辑

2011年7月7日

摘要: 使用CSS来修饰滚动条 1.overflow内容溢出时的设置 overflow-x水平方向内容溢出时的设置 overflow-y垂直方向内容溢出时的设置 以上三个属性设置的值为visible(默认值)、scroll、hidden、auto。 2.scrollbar-3d-light-color立体滚动条亮边的颜色 scrollbar-arrow-color上下按钮上三角箭头的颜色 scrollbar-base-color滚动条的基本颜色 scrollbar-dark-shadow-color立体滚动条强阴影的颜色 scrollbar-face-color立体滚动条凸出部分的颜色 scrollb 阅读全文
posted @ 2011-07-07 15:12 mustardpeanut 阅读(518) 评论(0) 推荐(0) 编辑

2011年7月5日

摘要: 原文地址http://www.bitscn.com/school/HTMLCSS/200808/150107.html 这是一个不太引人注意的问题,在IE浏览器下面中英文字体混排的时候,常常会出现不对齐的情况。如图1所示,在IE下当一行文字同时有英文跟中文的时候,链接下划线就会发生折行,也就表示这个时候中英文是没有对齐的!(FIREFOX不受此问题影响) 那么疑惑又来了,是什么导致了中英文偏差呢?!解决办法又是什么呢?!于是经过我测试发现两种情况(当然有可能有更多导致的情况。你们可以自己去尝 试),当中英文对象的相邻元素拥有vertical-align属性设置(比如前面一张小图片,或者文本框, 阅读全文
posted @ 2011-07-05 11:40 mustardpeanut 阅读(563) 评论(0) 推荐(0) 编辑

2011年4月27日

摘要: 网上遇到的两个php写的爬虫程序,感觉不错,收集进来,一块瞅瞅:sphider:(http://www.sphider.eu/)Sphider is a popular open-source web spider and search engine. It includes an automated crawler, which can follow links found on a site, and an indexer which builds an index of all the search terms found in the pages. It is written in P 阅读全文
posted @ 2011-04-27 11:44 mustardpeanut 阅读(1307) 评论(0) 推荐(0) 编辑

2011年4月14日

摘要: http://www.webappers.com/category/security/ 阅读全文
posted @ 2011-04-14 14:20 mustardpeanut 阅读(171) 评论(0) 推荐(0) 编辑

2011年4月12日

摘要: 数据加密标准(DES,Data Encryption Standard)是一种使用密钥加密的块密码,1976年被美国联邦政府的国家标准局确定为联邦资料处理标准(FIPS),随后在国际上广泛流传开来。它基于使用56位密钥的对称算法。这个算法因为包含一些机密设计元素,相对短的密钥长度以及被怀疑内含美国国家安全局(NSA)的后门而在开始时是有争议的,因此DES因此受到了强烈的学院派式的审查,并以此推动了现代的块密码及其密码分析的发展。DES现在已经不被视为一种安全的加密算法,主要因为它使用的56位密钥过短。1999年1月,distributed.net与电子前哨基金会合作,在22小时15分钟内即公开 阅读全文
posted @ 2011-04-12 10:24 mustardpeanut 阅读(372) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示