早年~楔子在xx项目中,为各网点图标隐藏文字时,用了{text-indent:-9999em;}的方式,结果IE6/7下图片就不见了,如下:正常浏览器:IE6/7:平时对于这种情况下的文字隐藏,多用line-height(下文提到的方式三)的方式,并没有认真去考虑它的优劣,也没有进行其他方式的测试和...
分类:
其他好文 时间:
2014-06-27 21:43:15
阅读次数:
261
$("input[type=text]") 处可为文本框ID,指定某个文本框输入小写字母变大写
分类:
编程语言 时间:
2014-06-27 21:37:08
阅读次数:
313
for (int i = 0; i { for (int i = 0; i { textBox1.Text += i + " " + "\n"; ...
分类:
编程语言 时间:
2014-06-27 20:53:36
阅读次数:
323
将$rg[1]=mb_ereg_replace("谷歌","百度",$rg[1]); 这句替换为$rg[1]=mb_ereg_replace("百度","谷歌",iconv('gb2312', 'utf-8',$rg[1]));
分类:
其他好文 时间:
2014-06-27 00:41:03
阅读次数:
417
一查询数值型数据:SELECT*FROMtb_nameWHEREsum>100;查询谓词:>,=,,!=,!>,!,=''orderbyaddtimedesc注:相当于PHP中的!=六利用变量查询数值型数据SELECT*FROMtb_nameWHEREid='$_POST[text]'注:利用变量查...
分类:
数据库 时间:
2014-06-27 00:04:22
阅读次数:
285
string ls_excelpath,docnameinteger li_rtnli_rtn = GetFileOpenName("Select File", ls_excelpath, docname, "XLS", + "Text Files (*.XLS),*.XLS," + "Doc F....
分类:
其他好文 时间:
2014-06-26 23:53:24
阅读次数:
291
背景:通过一个辅助线程计算出的一个值赋给textBox1.text;1.当点击一个button事件 去触发一个while(1)的循环事件时,如果不用线程去操作 界面就会卡死解决方法:需要加入线程。2然后发现在线程中去操作一个控件的显示(比如 textBox1.text=“”;)时会产生如下error...
分类:
编程语言 时间:
2014-06-26 23:03:38
阅读次数:
289
PrintDataGridView.csusing System;using System.Collections.Generic;using System.Text;using System.Drawing;using System.Data;using System.Data.SqlClient...
/**文件操作类 **/ #region 引用命名空间 using System; using System.Collections.Generic; using System.Text; using System.IO; #endregionnamespace CommonUtilities { ...
分类:
Web程序 时间:
2014-06-26 22:36:03
阅读次数:
216
异步方式,返回json给前台时,向前台输出信息使用PrintWriter,但是在输出的过程中,出现乱码的情况。于是我想起来response.setCharacterEncoding("utf-8");设置页面编码,以及response.setContentType("text/html; char....
分类:
其他好文 时间:
2014-06-26 22:17:55
阅读次数:
542