Home  >  Article  >  Web Front-end  >  关于CSS text-aliagn的问题_html/css_WEB-ITnose

关于CSS text-aliagn的问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:29:001284browse

<style>			.submit{				text-align:right;}		</style></head><body><form><div><input type="submit" value="Register" id="submit"  /></div></form></body></html>

为什么我明明用text-align:right 让submit按钮靠右了,为什么他还是在左边呢?
其他类型的程式码就没有这个问题..
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>


回复讨论(解决方案)



 








Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn