web developer

[jsp] label을 활용한 button 만들기 본문

JavaScript

[jsp] label을 활용한 button 만들기

trueman 2021. 10. 10. 22:26
728x90
728x90

1. css 

.button{
  	padding: 2px 10px;
  	background-color:#FF6600;
  	border-radius: 4px;
  	color: white;
  	cursor: pointer;
}

2. jsp파일

 <td align="left"> 
	<label class="button" for="input-file1”> 
    	<font size="2" face="돋움">업로드</font>
    	</label>
	<input type="file" name="imgname" id="input-file1” style="display:none">
</td>

3. 구현된 button 

 

728x90
728x90
Comments