07 2012 档案

摘要:在公制长度单位与屏幕分辨率进行换算时,必须用到一个DPI(Dot Per Inch)指标。 经过仔细的测试,发现了网页打印中,默认采用的是96dpi,并非传闻的72dpi A4纸张的尺寸是210×297mm,按1英寸=25.41mm换算,即8.264×11.688英寸 所以,A4纸96dpi下的分辨率是794×1123,这就是我们在制作网页的时候需要的象素。 但是打印机是无法满幅打印的,总要有页边距,所以我们在制作网页的时候必须减去页边距。 以下是我测试的各种页边距下,A4纸对应的象素尺寸: 打印页边距设定为 0mm 时,网页内最大元素的分辨率:794× 阅读全文
posted @ 2012-07-31 11:31 Byrd 阅读(423) 评论(0) 推荐(0)
摘要:c# 日期函数 DateTime dt = DateTime.Now; Label1.Text = dt.ToString();//2005-11-5 13:21:25 Label2.Text = dt.ToFileTime().ToString();//127756416859912816 Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816 Label4.Text = dt.ToLocalTime().ToString();//2005-11-5 21:21:25 Label5.Text = dt.ToLongD. 阅读全文
posted @ 2012-07-25 12:59 Byrd 阅读(436) 评论(0) 推荐(0)
摘要:1、使用wsdl生成客户端HelloStub.java、OtherStub.java【通过axis2插件的Axis2 code generator生成】2、测试类或者jsp页面,可以通过2中的客户端类来调用服务例如:HelloStub helloStub=new HelloStub("http://127.0.0.1:8080/axis2/services/HelloService"); Helloworld helloworld=new Helloworld(); helloworld.setName("zgx---"); HelloworldResp 阅读全文
posted @ 2012-07-11 13:30 Byrd 阅读(232) 评论(0) 推荐(0)
摘要:$('a.ui-dialog-titlebar-close').hide(); 阅读全文
posted @ 2012-07-05 16:01 Byrd 阅读(430) 评论(0) 推荐(0)
摘要:1、从 http://ws.apache.org/axis2/tools/index.html 上下载Service Archive Wizard - Eclipse Plug-in 和 Code Generator Wizard - Eclipse Plug-in 2、在eclipse的目录下(例如:我的是D:\Program Files\MyEclipse 6.5) 新建Axis2目录 3、在Axis2 下建立eclipse 目录 并在eclipse下建立features和plugins 目录 4、将下载的两个压缩文件解压后,复制到刚刚建好的plugins目录下 5、在ecli... 阅读全文
posted @ 2012-07-04 12:28 Byrd 阅读(1400) 评论(0) 推荐(0)