JavaScript+CSS无限极分类代码
CSS
a {}{text-decoration:none;}
a,a:visited {}{color:#000;background:inherit;}
body {}{margin:0;padding:20px;font:12px tahoma,宋体,sans-serif;}
dt {}{font-size:22px;font-weight:bold;margin:0 0 0 15px;}
dd {}{margin:0 0 0 15px;}
h4 {}{margin:0;padding:0;font-size:18px;text-align:center;}
p {}{margin:0;padding:0 0 0 18px;}
p a,p a:visited {}{color:#00f;background:inherit;}
/**//*CNLTreeMenu Start*/
.CNLTreeMenu img.s {}{cursor:pointer;vertical-align:middle;}
.CNLTreeMenu ul {}{padding:0;}
.CNLTreeMenu li {}{list-style:none;padding:0;}
.Closed ul {}{display:none;}
.Child img.s {}{background:none;cursor:default;}
#CNLTreeMenu1 ul {}{margin:0 0 0 17px;}
#CNLTreeMenu1 img.s {}{width:20px;height:15px;}
#CNLTreeMenu1 .Opened img.s {}{background:url(skin1/opened.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Closed img.s {}{background:url(skin1/closed.gif) no-repeat 0 0;}
#CNLTreeMenu1 .Child img.s {}{background:url(skin1/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu2 ul {}{margin:0 0 0 17px;}
#CNLTreeMenu2 img.s {}{width:17px;height:15px;}
#CNLTreeMenu2 .Opened img.s {}{background:url(skin2/opened.gif) no-repeat 4px 6px;}
#CNLTreeMenu2 .Closed img.s {}{background:url(skin2/closed.gif) no-repeat 3px 6px;}
#CNLTreeMenu2 .Child img.s {}{background:url(skin2/child.gif) no-repeat 3px 5px;}
#CNLTreeMenu3 ul {}{margin:0 0 0 17px;}
#CNLTreeMenu3 img.s {}{width:34px;height:18px;}
#CNLTreeMenu3 .Opened img.s {}{background:url(skin3/opened.gif) no-repeat 0 1px;}
#CNLTreeMenu3 .Closed img.s {}{b
相关文档:
下面都是我收集的一些比较常用的正则表达式,因为平常可能在表单验证的时候,用到的比较多。特发出来,让各位朋友共同使用。呵呵。
匹配中文字符的正则表达式: [u4e00-u9fa5]
评注:匹配中文还真是个头疼的事,有了这个表达式就好办了
匹配双字节字符(包括汉字在内):[^x00-xff]
评注:可以用来计算字符串的长度(一个 ......
<html>
<body>
<style>
ul,li{margin: 0; padding: 0;width:100%;}
</style>
<script language="javascript" type="text/javascript">
function checkword()
{
var wordvalue=document.getElementById("word").value.toLowerCase();
var alltxt="管理员| ......
正则表达式是一个描述字符模式的对象。
JavaScript的RegExp对象和String对象定义了使用正则表达式来执行强大的模式匹配和文本检索与替换函数的方法.
'***********************
' \\JavaScript//
'
'***********************
在JavaSc ......
网页采用了 UTF-8 编码格式,这本来没有问题,问题是外部 CSS 文件默认是 ANSI 编码,并没有保存为 UTF-8 格式。可能你会发现在一般情况下这样也是没有问题的,然而当 CSS 文件中包含有中文注释时就可能不尽如人意了!
估计是 IE6 版本以下的浏览器在解析这个 CSS 文件时因为编码问题而无法正确解析,所以才会发生 CSS ......
The CSS Anthology 101 Essential Tips Tricks Hacks 3rd Edition
The Ultimate CSS Reference
Teach Yourself Visually Html And CSS
Everything You Know About CSS is Wrong
The CSS Anthology 101 Essential T ......