2014-10-24 4 views

답변

2

CSS 파일에이 코드를 사용하십시오. 그것은 나를 위해 크롬에서 일했습니다.

input[type=file] { 
-webkit-appearance: textfield; 
position: relative; 
-webkit-box-sizing: border-box; 
} 

input[type=file]::-webkit-file-upload-button { 
width: 0; 
padding: 0; 
margin: 0; 
-webkit-appearance: none; 
border: none; 
} 

/* "x::-webkit-file-upload-button" forces the rules to only apply to browsers that support this pseudo-element */ 
x::-webkit-file-upload-button, input[type=file]:after { 
content: 'Browse...'; 
display: inline-block; 
left: 100%; 
margin-left:3px; 
position: relative; 
-webkit-appearance: button; 
padding: 3px 8px 2px; 
} 
-1
<form method="POST" action="uploadFile" enctype="multipart/form-data"> 
<strong>Upload file:</strong> 
<input type="file" name="file" /> 
    <input type="submit" style="float:right;" value="Upload" /> 
</form> 
+0

문제는'file' 입력의 일부입니다 * 찾아보기 * 버튼에 대한 요구하고있다. – Quentin