12 2012 档案
摘要:CSS调整行间距line-height行与行之间的距离最常用的称呼是行间距,CSS中的行高line-height简直是上帝发给人间的福音。利用CSS行高我们可以随心所欲地控制行与行之间的垂直距离。行间距line-height使用方法:B { line-height: 16pt }line-height后面的内容可能是:数字长度单位比例用数字设行距实例就是:B { line-height: 2 }B { line-height: 16pt }B { line-height: 120% }B { line-height: 1.2em}CSS的行间距定义是:line-height:18px;上面代码
阅读全文
摘要:Css字间距调整汉字间字间距设置:letter-spacing英文间字间距设置:word-spacing:H3 { word-spacing: 1em }参数:in (英寸)cm (厘米)mm (毫米)pt (点数)pc (打字机字间距)em (ems)ex (x-height)px (象素)
阅读全文
摘要:log4使用介绍2011-09-23 19:02301人阅读评论(1)收藏举报我们在编程时经常不可避免地要使用到一些日志操作,比如开发阶段的调试信息、运行时的日志记录及审计。调查显示,日志代码占代码总量的4%。通常大家可以简单地使用System.out.println()语句输出日志信息,但是在发布时,通常不想在正式的版本中打印这些开发时的调试信息,于是又要手工地把这些语句删除,所以大量的这样的System.out.println()调试语句会带来麻烦。更多做法是把它封闭一个简单的输出,比如:java 代码1.publicfinalclassDebug 2. { 3. publicstatic
阅读全文
摘要:Since 2007, we have been working on making Java web application development easier. Play started as an internal (国内的) project atZenexityand was heavily influenced(受影响的) by our way of doing web projects: focusing on developer productivity(生产力), respecting(关于) web architecture(建筑学、建筑样式), and using a f
阅读全文
摘要:Play 2.0 is a high-productivity Java and Scala web application framework that integrates the components and APIs you need for modern web application development.Play 2.0是一个高效率的java和scala的web应用程序集成的组建和您所需要的现代Web应用程序开发的APIS!Play is based on a lightweight, stateless, web-friendly architecture and featu
阅读全文
摘要:function initialize() { addcloud(); //为页面添加遮罩 document.onreadystatechange = subSomething; //监听加载状态改变 } function addcloud() { var bodyWidth = document.documentElement.clientWidth; var bodyHeight = Math.max(document.documentElement.clientHeight...
阅读全文
摘要:首先要给网页加上进度条的代码。如 aw 所言,进度条的位置很重要。如果你的 <head> 部分要加载的东西太多,导致网页迟迟显示不出来,那进度条也没必要加了。用户可能等不及进度条显示出来就关闭页面了。针对这个问题,我作了手动的优化,让自己的页面在 <head> 部分只加载 CSS 和 favicon,至于 javascript 统统挪到后面。这样打开网页的时候就能迅速地显示出进度条,起到提示的作用。HTML代码我加在 <body> 的后面了,内容如下,这个“载入中”的提示也可以用 Javascript 输出(有利于SEO)<div id=”progre
阅读全文

浙公网安备 33010602011771号