上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 最近切图遇到了,psd文档与网页字体的冲突。很多字体,系统中都没有安装。在同事和网络的帮助下解决了这个问题...发此文以表感谢,外加自我提醒。 一、使用Google WebFont字体,网上资料很多,,在这里就不仔细描述了。 二、如果Goole字体中没有,请看下面的方法 大体步骤: 1、下载所需字体。字体下载站提供的字体一般为.TTF格式。 2、字体转格式。为了确保在主流浏览器中都能正常显示该字体,需要提供3种字体格式。我们可以拿下载下来的.TTF文件去转换得到另外两种格式的字体。字体文件格式的转换可以通过网站FontsQuirrel 或 onlinefontcon... 阅读全文
posted @ 2013-03-13 10:05 夜照亮了黑 阅读(357) 评论(0) 推荐(0) 编辑
摘要: aspx代码:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript&q 阅读全文
posted @ 2013-01-25 10:50 夜照亮了黑 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 在.Net中下载文件实际上就是往浏览器返回一个包含该文件的唯一url地址由于url的编码为AscⅡ码,如果要下载文件名为中文的文件就可以会出现乱码,所以需要对文件名进行编码 string fileName = "测试.docx"; string encodeName = HttpUtility.UrlPathEncode(fileName);//对中文进行编码 Response.ContentType = "application/octet-stream"; Response.AppendHeader("... 阅读全文
posted @ 2013-01-16 14:26 夜照亮了黑 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 其实,用的最多的算是省市联动了直接上代码了aspx页面:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>省市联动</title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script typ 阅读全文
posted @ 2013-01-07 16:31 夜照亮了黑 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 最近项目中需要对购物车中重复的商品号进行排除,本文的例子借鉴加上自己的整理,用的双重循环来操作以下是代码public class Cart { public int ID { get; set; } public decimal price { get; set; } } //进行简单的声明并实例化 List<Cart> lstCart = new List<Cart>() { new Cart(){ID=1,price=100}, new Cart(){ID=1,price=1... 阅读全文
posted @ 2012-12-28 17:14 夜照亮了黑 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 直接上代码了。 Demo1:加上价格标签 class Program { public decimal price { get; set; } static void Main(string[] args) { Program p = new Program(); p.price = 25; Con 阅读全文
posted @ 2012-12-20 09:07 夜照亮了黑 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 最近项目中用到大量的不重复的随机数, 在网上查了资料http://blog.csdn.net/xujinpeng99/article/details/6387782 Random类都是伪随机的,就是看上去象随机但实际上是用一个公式推导出来的,只要能产 生足够长的伪随机序列就行。相同的种子生成的随机系 阅读全文
posted @ 2012-12-19 22:46 夜照亮了黑 阅读(3463) 评论(0) 推荐(0) 编辑
摘要: 先直接上一个简单的实例:aspx页面:View Code<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Ajax简单实例</title> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(fun 阅读全文
posted @ 2012-12-19 22:30 夜照亮了黑 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 本人初学JQuery。写了一个实现checkbox的全选/取消全选,实现类似于163邮箱功能。以下是代码,测试全部通过,请勿喷<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript" src="Script/jquery-1.7.min.js"></script> <script type="text/javasc 阅读全文
posted @ 2012-12-14 09:31 夜照亮了黑 阅读(588) 评论(1) 推荐(0) 编辑
摘要: 这是CSDN上提问写的。以下是代码,测试通过……<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content=" 阅读全文
posted @ 2012-12-14 09:29 夜照亮了黑 阅读(350) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页