站长资源网页制作 表单label美化代码 整理:jimmy2025/2/27浏览2次 站长资源 网页制作 网盘链接 云盘下载 简介化表单,效果如下:每个lebal有箭头的背景 有焦点的lebal背景高亮 示例如下:代码如下:复制代码代码如下:姓 名 化表单,效果如下: 每个lebal有箭头的背景 有焦点的lebal背景高亮 示例如下: 代码如下:复制代码代码如下:<form id="commentform" method="post" action=""><p class="input"><label for="author">姓 名</label><input type="text" aria-required="true" tabindex="1" size="12" value="" id="author" name="author"></p><p class="input"><label for="email">邮 件</label><input type="text" aria-required="true" tabindex="2" size="12" value="" id="email" name="email"></p><p><input type="submit" value="提交评论" tabindex="5" id="submit" name="submit"></p></form>css代码:复制代码代码如下:#commentform{ font-size:12px;}#commentform label{width:55px;height:24px;display:block;float:left;background:url(label.png) no-repeat left top;line-height:22px;color:#999;padding-left:18px;}* html #commentform label{float:none;display:inline;padding:5px 15px 10px 18px;margin-right:10px;vertical-align:middle;}#commentform input{height:20px;width:220px;border:1px solid #EEE;padding:4px 4px 0 4px;}#commentform p.input:hover label,#commentform p.input:active label,#commentform p.input:focus label{background:url(label.png) no-repeat left -40px;color:#000;}#commentform input#submit{width:82px;height:24px;background:url(submit.png) no-repeat left top;margin-left:73px;color:#999;border:0 none;line-height:100%;display:block;padding:0;cursor:pointer;}#commentform input#submit:hover,#commentform input#submit:active,#commentform input#submit:focus{background:url(submit.png) no-repeat left bottom;color:#000;}完整测试代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>label 美化</title> <style type="text/css"> #commentform{ font-size:12px; } #commentform label{width:55px;height:24px;display:block;float:left;background:url(//img.jbzj.com/demoimg/201005/label.png) no-repeat left top;line-height:22px;color:#999;padding-left:18px;} * html #commentform label{float:none;display:inline;padding:5px 15px 10px 18px;margin-right:10px;vertical-align:middle;} #commentform input{height:20px;width:220px;border:1px solid #EEE;padding:4px 4px 0 4px;} #commentform p.input:hover label,#commentform p.input:active label,#commentform p.input:focus label{ background:url(//img.jbzj.com/demoimg/201005/label.png) no-repeat left -40px;color:#000; } #commentform input#submit{width:82px;height:24px;background:url(//img.jbzj.com/demoimg/201005/submit.png) no-repeat left top;margin-left:73px;color:#999;border:0 none;line-height:100%;display:block;padding:0;cursor:pointer;} #commentform input#submit:hover,#commentform input#submit:active,#commentform input#submit:focus{background:url(//img.jbzj.com/demoimg/201005/submit.png) no-repeat left bottom;color:#000;} </style> </head> <body> <form id="commentform" method="post" action=""> <p class="input"><label for="author">姓 名</label><input type="text" aria-required="true" tabindex="1" size="12" value="" id="author" name="author"></p> <p class="input"> <label for="email">邮 件</label><input type="text" aria-required="true" tabindex="2" size="12" value="" id="email" name="email"></p> <p><input type="submit" value="提交评论" tabindex="5" id="submit" name="submit"></p> </form> </body> </html> 提示:您可以先修改部分代码再运行请注意图片的地址。 上一篇:css中IE判断语句 if !IE 下一篇:css hack总结 图片整理版 最新资源 群星《奔赴!万人现场 第2期》[FLAC/分轨] 群星《奇妙浪一夏 (上海迪士尼度假区音乐 群星《奇妙浪一夏 (上海迪士尼度假区音乐 【古典音乐】詹姆斯·高威《季节》1993[WA 贝拉芳蒂《卡里普索之王》SACD[WAV+CUE] 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE 群星《欢迎来到我身边 电影原声专辑》[32 群星《欢迎来到我身边 电影原声专辑》[FL 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低 群星《2024好听新歌42》AI调整音效【WAV分 一句话新闻高通与谷歌联手!首款骁龙PC优化Chrome浏览器发布高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。 标签云1080P高清(5)高清电影(5)百度云盘(5)网盘下载(4)破解软件(4)绿色软件(4)磁力链接(3)强度天梯(3)福利资源(2)王者荣耀(2)黑钻活动(2)WPS会员(2)刷图排行(1)网盘限速(1)鬼灭之刃(1)免费韩国漫画(1)宫本重做(1)免费动漫(1) 友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 站点地图 SiteMap