如何自定义在CSS的jQuery验证消息自定义jQuery验证消息的CSS
从这个
要这样:
我可以谁能帮助我产生上述的造型?
我试图label.error { float: none; padding-left: .5em; vertical-align: top; background-color: #333; font-size: 10px; border: 1px solid #999; color: #FFF; display: none; -moz-border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius-bottomleft: 0; -moz-border-radius-topleft: 0; -webkit-border-bottom-left-radius: 0; -webkit-border-top-left-radius: 0; -moz-box-shadow: 0 0 6px #ddd; -webkit-box-shadow: 0 0 6px #ddd; white-space: nowrap; padding-top: 2px; padding-right: 10px; padding-bottom: 2px; padding-left: 5px; font-family: Arial, Helvetica, sans-serif; -moz-opacity: .90; filter: alpha(opacity = 90); opacity: .90; margin-left: 5px; margin-top: -2px; }
,但我不能正确对齐
感谢
可以看到有哪些你到目前为止已经试过?...和你做这个自己或者这是你使用的插件吗? – 2012-07-16 16:11:15
我使用的是http://docs.jquery.com/Plugins/Validation,我试过float:none; \t padding-left:.5em; \t vertical-align:top; \t background-color:#333; \t font-size:10px; \t border:1px solid#999; \t颜色:#FFF; \t display:none; \t -moz-border-radius:4px; \t -webkit-border-radius:4px; \t -moz-border-radius-bottomleft:0; \t -moz-border-radius-topleft:0; – skystar7 2012-07-16 16:17:39
-webkit-border-bottom-left-radius:0; \t -webkit-border-top-left-radius:0; \t -moz-box-shadow:0 0 6px #ddd; \t -webkit-box-shadow:0 0 6px #ddd; \t white-space:nowrap; \t padding-top:2px; \t padding-right:10px; \t padding-bottom:2px; \t padding-left:5px; \t font-family:Arial,Helvetica,sans-serif; \t -moz-opacity:.90; \t filter:alpha(opacity = 90); \t不透明度:.90; \t margin-left:5px; \t margin-top:-2px;但我无法正确对齐 – skystar7 2012-07-16 16:17:46