06 2011 档案
摘要:type='sumbit'时默认enter键提交表单但如果用的是ajax提交时,type="button",enter键提交不了,所以只好用js去捕捉onkeydown事件~document.onkeydown = function(e){ e = e || window.event; if(e.keyCode === 13){ //这里放你的代码 }};
阅读全文
摘要:background-clip + text-fill-color下的实现如果您手头上的浏览器是Chrome或是Safari,则您可以在demo页面中看到类似下面的效果:<h2 class="text-gradient">天赐美妞</h2>CSS(CSS代码中关键有用的其实就是最后三行):.text-gradient { display: inline-block; color: green; font-size: 10em; ont-family: ´微软雅黑´; background-image: -webkit-gradie
阅读全文
摘要:ext-stroke(文本描边)和text-fill-color(文本填充色)注意点:目前这两个属性只有webkit内核的Safari和Chrome支持,例如: -webkit-text-stroke: 3.3px #2A75BF;text-fill-color:颜色值,和color属性差不多都是文字的样式;同时使用text-fill-color和color属性,text-fill-color将覆盖color属性的颜色值;text-fill-color可以使用透明值,即:text-fill-color:transparent查看一个text-stroke(文本描边)和text-fill-col
阅读全文
摘要:问题:<div id="top" style="height:100px;background-color:#CCC;"></div><div id="parent" style="background-color:#F9F; overflow:hidden;"><div id="child" style="margin-top:10px; background-color:#99F;">想实现效果: Chile 与 paren
阅读全文
摘要:$(function () { /* function one_Position() { var p = $("#one_curTime"); $(window).scrollTop(p.offset().top - 150); $("#one_curTime").css("background", "red") }; function three_Position() { var p = $("#three_curTime"); $(window).scrollTop(p.offset().t
阅读全文
摘要:Samples:http://webpro.host.adobe.com/people/jblas/momentum/momentum-scroller-sample-01.htmlhttp://webpro.host.adobe.com/people/jblas/momentum/momentum-scroller-sample-02.htmlhttp://webpro.host.adobe.com/people/jblas/momentum/momentum-scroller-sample-03.html英文好的同学可以直接看原文:http://forum.jquery.com/topic
阅读全文