时间:2021-07-01 10:21:17 帮助过:3人阅读
运行效果图:
代码如下:
- <title>js验证码</title>
- <style type="text/css">
- .code
- {
- background:url(code_bg.jpg);
- font-family:Arial;
- font-style:italic;
- color:blue;
- font-size:30px;
- border:0;
- padding:2px 3px;
- letter-spacing:3px;
- font-weight:bolder;
- float:left;
- cursor:pointer;
- width:150px;
- height:60px;
- line-height:60px;
- text-align:center;
- vertical-align:middle;
- }
- a
- {
- text-decoration:none;
- font-size:12px;
- color:#288bc4;
- }
- a:hover
- {
- text-decoration:underline;
- }
- </style>
希望本文所述对大家学习javascript程序设计有所帮助。