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

WBOY
Release: 2016-06-21 09:29:00
Original
1283 people have browsed it

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

为什么我明明用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>
Copy after login


回复讨论(解决方案)



 








Related labels:
css
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template