摘要: 今天在用FCK,在超链接-->上传-->发送到服务器中报Invalid Request错误找了半天才找到,解决如下:I had this problem as well. The problem is that it can't find the type of resource for upload. I assume that it should detect the resource type by file extension, but there is no code to do that.I fixed it by adding the resource typ 阅读全文
posted @ 2011-08-17 22:56 木油 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 今天写了一个购物车类,用Cookie实现,要在构造函数那实现判断浏览器是否支持Cookie。public bool IsAcceptCookie; public ShoppingCart() { System.Web.HttpContext.Current.Response.Cookies["TestCookie"].Value = "ok"; System.Web.HttpContext.Current.Response.Cookies["TestCookie"].Expires = DateTime.Now.AddMinutes( 阅读全文
posted @ 2011-08-17 11:35 木油 阅读(2791) 评论(0) 推荐(0) 编辑
摘要: 问题: 我页面编码开始是gb2312的,后来换成了utf-8,结果用IETester测试,打开ie6,7,8页面是一片空白,但查看源文件又是完整的。在ie6和firefox下都正常,但是在ie7下偶尔会出现这样的情况。 在网上找了找,发现问题原因及解决方法如下: 解决: <title>页面</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 交换一下顺序 <meta http-equiv="Conte 阅读全文
posted @ 2011-08-15 14:22 木油 阅读(2119) 评论(0) 推荐(1) 编辑
摘要: IE6重复字符BUGIE6重复字符BUG好久没遇到如此有趣的BUG了,有多有趣呢?看下面的图~在IE6里多出了几个字符?是的,很诡异吧~但是绝对是同样的源代码哦~!你可以下载下面的HTML文档,在IE6中查看一下效果。 后面的注释是4种解决方法,可以一一删掉注释查看。下载测试出现这个BUG的“机遇“其实并不大,要满足以下一个或者多个条件:1.父元素的内部有多个浮动元素。2. 最后一个浮动元素前有隐藏元素:包括html注释和display:none的元素3.子元素的宽度和父元素相同,父元素的宽度减去子元素宽度小于3px<div style=“width:500px;font-size:12 阅读全文
posted @ 2011-08-10 16:42 木油 阅读(554) 评论(0) 推荐(1) 编辑