http://blog.sina.com.cn/xulizhun[订阅]
个人资料
好友
读取中...
访客
读取中...
评论
读取中...
音乐播放器
博文
css select border(2009-03-14 17:22)
<span style='border:1px solid red; position:absolute; overflow:hidden'><select style='margin:-2px'>   
   <option>1111</option>   
   <option>11111111111111</option>   
   <option>111111111</option>   
   </select></span> 
经典tab(2009-02-21 13:21)
<!--
引用时保留下原创作者喽,尊重任何一位原创作者,促进中国互联网进程
Editor:weasle
Email:weasle@163.com
QQ:112011531
-->
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=gb2312' />
<title>简洁Tab</title>
<style type='text/css'>
<!--
body,div,ul,li{
padding:0;
text-align:center;
}
body{
font:12px '宋体';
text-align:center;
}
a:link{
color:#00F;
text-decoration:none;
}
a:visited {
color: #00F;
text-decoration:none;
}
a:hover {
color: #c00;
text-decoration:underline;
}
ul{ list-style:none;}

#Tab1{
width:460px;
margin:0px;
padding:0px;
margin:0 auto;}

#Tab2{
width:576px;
margin:0px;
padding:0px;
margin:0 auto;}

class_names(2008-08-01 14:58)
//class_names.js
function hasClass(target, classValue)
{
    var pattern = new RegExp('(^| )' + classValue + '( |$)');

    if (target.className.match(pattern))
    {
        return true;
    }

    return false;
};




function addClass(target, classValue)
{
    if (!hasClass(target, classValue))
    {
        if (target.className == '')
        {
            target.className = classValue;
        }
        else
        {
        &nb