Home > Article > Web Front-end > 关于CSS text-aliagn的问题_html/css_WEB-ITnose
<style> .submit{ text-align:right;} </style></head><body><form><div><input type="submit" value="Register" id="submit" /></div></form></body></html>
css: .title{ float:left; width:100px; text-align:right; padding-right:10px;} .radio-buttons label{ float:none;} .submit{ text-align:right;}html:<div><label for="email" class="title">Name:</label><input type="text" id="name" name="name" /></div><div><label for="email" class="title">Email:</label><input type="email" id="email" name="email" /></div>