
Javascript and CSS
文章平均质量分 56
Robin2Wu
这个作者很懒,什么都没留下…
展开
-
ul li style
float:left;list-style-type:none;border-right:1px solid #ffffff;white-space:nowrap; reference : http://www.52css.com/article.asp?id=502007-06-29 13:52:34 · 586 阅读 · 0 评论 -
jQuery 常用代码
jQuery 加载运行[code="java"]$(document).ready(function(){ /*code*/});[/code]判断空字符串[code="java"]if(/^\s*$/.test($(this).val())) {}else{}[/code]去两边空格[code="java"]$.trim()[/code]...2011-04-09 21:12:20 · 113 阅读 · 0 评论 -
HTML5 常用代码
HTML5检测技术 Moderniz[code="java"]http://www.quanlei.com/2011/02/html5%E6%A3%80%E6%B5%8B%E6%8A%80%E6%9C%AF/[/code]Modernizr Test Suite[code="java"]https://github.com/Modernizr/Modernizrht...原创 2011-10-27 09:13:34 · 238 阅读 · 0 评论 -
Js 常用代码
Math 方法[code="java"]Math.pow(X,y) 就是计算X的Y次方Math.random() 返回 0 ~ 1 之间的随机数。 Math.round() 四舍五入取整。Math.ceil() 返回值:返回大于或等于x,并且与之最接近的整数。注:如果x是正数,则把小数“入”;如果x是负数,则把小数“舍”。Math.floor() ...2011-10-18 08:17:27 · 190 阅读 · 0 评论 -
通过 js timer 控制 form 多次提交
[code="javascript"]Form.Element.AfterActivity = function(element, callback, delay) { element = $(element); if (!delay) delay = 0.25; new Form.Element.Observer(element, delay, function(eleme...2010-03-23 10:54:04 · 132 阅读 · 0 评论 -
在CSS文件里导入其它的CSS文件
/**********************************Use: Main Screen Import***********************************/@import "test.css";2008-01-20 21:09:41 · 293 阅读 · 0 评论 -
Select Tag's options process
xml 代码 <html> <head> <script src="file:///E:\FrameWork\prototype\prototype-1.4.0\dist\prototype.js"></script> <script language="javasc...2007-12-22 09:49:15 · 104 阅读 · 0 评论 -
Checkbox 只读
xml 代码 <input type="checkbox" onclick="return false;">2007-12-10 17:02:38 · 623 阅读 · 0 评论 -
checkbox处理
xml 代码 <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>cb</title> <script type=&q2007-12-08 16:24:01 · 92 阅读 · 0 评论 -
Let span tag can set width or height style
css 代码 span { display:-moz-inline-box !important; display: inline-block; }2007-11-16 16:24:43 · 95 阅读 · 0 评论 -
Select Tag group
js 代码 <-select name="name"> <-optgroup label='group1'> <-option >11<-/option> <-option selected>12<-/option>2007-11-15 14:30:43 · 131 阅读 · 0 评论 -
javascript trim
java 代码 // Removes leading and ending whitespaces, nbsps function trim(str) { return str.replace(/(^[\s\xA0]+|[\s\xA0]+$)/g, ''); }2007-09-14 13:25:36 · 141 阅读 · 0 评论 -
分页打印
page-break-before : auto | always | avoid | left | right | null page-break-after : auto | always | avoid | left | right | null 取值: auto : 假如需要在对象之后插入页分割符 always : 始终在对象之后插入页分割符 avoid : 未支持。避免在...2007-07-19 14:08:04 · 122 阅读 · 0 评论 -
用JS改变TAG的样式
js 代码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>用JS...2007-07-14 09:21:18 · 723 阅读 · 0 评论 -
HTML 立方米表示
java 代码 <p> <span lang=EN-US>M</span> <sup> <span lang=EN-US style='mso-bidi-font-size:10.5pt'>3</span> </s...2007-07-05 07:41:06 · 1657 阅读 · 0 评论 -
CSS 常用代码
[code="java"][/code][quote][url]http://chen.xianan.name/lab/yui-cn/example/[/url][url]http://developer.yahoo.com/yui/3/[/url][/quote]2011-04-10 10:14:55 · 366 阅读 · 0 评论