怎么能让多个文本框的框对齐
怎么能让多个文本框的框对齐
怎么能让多个文本框的框对齐
2015-11-18
<!DOCTYPE html> <meta charset="utf-8"> <html> <head> <title> xxx</title> <style> label{ display: inline-block; width: 100px; text-align: right; } div{ padding: 5px 0; } </style> </head> <body> <form action=""> <div> <label for="t1">xxxx</label> 是<input id="t1" type="radio"> 否<input type="radio"> </div> <div> <label for="t2">xxxxxxxx</label> 是<input id="t2" type="radio"> 否<input type="radio"> </div> <div> <label for="t3">xxxxxxxxxxxxx</label> 是<input id="t3" type="checkbox"> </div> <div> <label for="t6">xxxx</label> <input id="t6" type="text"> </div> <div> <label for="t4">xx22123xx</label> <input id="t4" type="text"> </div> <div> <label for="t5">xxxx</label> <select name="" id="t5"> <option value="">1value</option> <option value="">2value</option> <option value="">3value</option> <option value="">4value</option> </select> </div> </form> </body> </html>
text-align: right; 这个就是文字右对齐呀
举报