課程
/前端開發(fā)
/jQuery
/jQuery插件——Validation Plugin
就是表單驗證validation插件這節(jié)課,怎么讓提示改變位置???我看老師的代碼表單提示提示有的在右邊,有的在下面提示,怎么做到的
2016-07-28
源自:jQuery插件——Validation Plugin 1-2
正在回答
錯誤提示默認是出現(xiàn)在輸入框的右側(cè),要讓它出現(xiàn)在輸入框的下面,最簡便的方法就是設(shè)置<fildset>的寬度為input框的寬度,然后代碼提示自動會出現(xiàn)在輸入框的下方
慕后端3081372 提問者
body {
? ? font-size: 36px;
? ? line-height: 1.6;
}
p {
? ? margin: 10px 0;
label {
? ? display: inline-block;
? ? min-width: 140px;
label.error {
? ? margin-left: 10px;
? ? color: red;
input, button {
? ? line-height: 35px;
? ? border: 1px solid #999;
? ? min-width: 180px;
input.error {
? ? border: 1px solid red;
input[type=submit], button {
? ? margin-top: 20px;
? ? padding: 10px 0;
舉報
validation讓客戶端表單驗證變?nèi)菀?,縮短用戶等待時間
2 回答validation插件怎么做select的驗證呢?
3 回答jquery validation 驗證
2 回答validation插件
1 回答validation插件問題
2 回答jquery.validation插件驗證碼問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-07-28
錯誤提示默認是出現(xiàn)在輸入框的右側(cè),要讓它出現(xiàn)在輸入框的下面,最簡便的方法就是設(shè)置<fildset>的寬度為input框的寬度,然后代碼提示自動會出現(xiàn)在輸入框的下方
2016-07-29
body {
? ? font-size: 36px;
? ? line-height: 1.6;
}
p {
? ? margin: 10px 0;
}
label {
? ? display: inline-block;
? ? min-width: 140px;
}
label.error {
? ? margin-left: 10px;
? ? color: red;
}
input, button {
? ? font-size: 36px;
? ? line-height: 35px;
? ? border: 1px solid #999;
? ? min-width: 180px;
}
input.error {
? ? border: 1px solid red;
}
input[type=submit], button {
? ? margin-top: 20px;
? ? font-size: 36px;
? ? padding: 10px 0;
}