网页中常用的技巧、代码、样式等

1、Javascript+css做动态立体按钮onMouseOut="this.className='nobianbuttonborder'" onMouseOver="this.className='buttoncolor';this.style.cursor='hand'" onClick="java:win=window.open('sca_tlist.asp?scasort=<%=rs("SMT_id")%>');win.focus();"
----------------------------------
.buttoncolor {border-top:#ffa55b 4 solid;background: #ff7300;font:12px;color:#FFF;text-align:center;height:25px;}
.nobianbuttonborder {border-top:#ffffff 5 solid;background: #F1F1F1;border-bottom:#cccccc 2 solid;text-align:center;font-size: 12px;height:25px;}
.norightbuttonborder {border-top:#FFFFFF 5 solid;background: #F1F1F1;border-left:#cccccc 1 solid;border-bottom:#cccccc 2 solid;text-align:center;font-size: 12px;height:25px;}

2、登陆入口加背景图片
input.username { width:100px; background:#FFFFFF url("../img/vip.gif") 2px 2px no-repeat; padding-left:18px; }
input.password { width:100px; background:#FFFFFF url("../img/vip.gif") 2px 2px no-repeat; padding-left:18px; }

3、漂亮的链接样式
a:visited {
COLOR: #ffffff; FONT-FAMILY: Arial; TEXT-DECORATION: none
}
a:link {
COLOR: #ffffff; FONT-FAMILY: Arial; TEXT-DECORATION: none
}
a:active {
        FONT-FAMILY: Arial; TEXT-DECORATION: none
}
a:hover {
BORDER-TOP-WIDTH: 1px; BACKGROUND-POSITION: 50% bottom; BORDER-LEFT-WIDTH: 1px; LEFT: 1px; COLOR: #99cc33; BORDER-BOTTOM: 1px dotted; BACKGROUND-REPEAT: repeat-x; POSITION: relative; TOP: 1px; BORDER-RIGHT-WIDTH: 1px; TEXT-DECORATION: none
}

4、最后更新时间
< s c r i p t language=java>document.write("最后更新: " + document.lastModified);</>

5、打印出一个漂亮的符号
<FONT face=Wingdings>v</FONT>

 



评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值