2012-07-13 2 views

답변

0

코드는 아래를 참조하시기 바랍니다.

<div class="container"> 
<input type="text"><input type="text"><input type="text"> 
</div> 

<style type="text/css"> 
.container {width:500px;} 
.container input {width:30%;} 
.container input:first-child {margin-right:5%;} 
.container input:last-child {margin-left:5%;} 
</style> 
+0

나는 이것을 시도했지만 작동하지 않습니다. 하나의 브라우저에서는 괜찮 았지만, 다른 브라우저에서는 마지막 입력이 다른 브라우저에 놓이게됩니다. 자동 여백을 설정하는 것이 필요합니다. 또는 이와 같이 처음 두 입력에 대한 여백을 예를 들어 10 픽셀로 설정하고 모든 입력의 너비를 자동으로 설정합니다. –

+0

이 브라우저가 작동하고 어떤 브라우저에서 작동하지 않는지 지정할 수 있으며 브라우저 버전도 잊어 버리지 마십시오. –