NO file selected
텍스트를 제거하는 방법에 대한 많은 토론을 읽었습니다. 조건에 따라 파일을 선택하지 않음
if there is a value
같은 뭔가 다음을 제거하려면 if
조건에 따라 제거 할 NO file selected
필요
<style type="text/css">
input[type='file'] {
color: transparent;
}
</style>
<input type="file" />
을 선택한 파일이 없으면 파일을 추가하십시오.
@if (Model.value != null)
{
Remove the no file chosen
}
else
{
Add the no File chosen
}
가능합니까? 나는 당신이 CSS 클래스와 이에 대한 JS의 비트를 사용할 수 있습니다
가능한 중복 [난에 파일 입력에서 "어떤 파일을 선택하지"툴팁을 제거하는 방법 크롬?] (http://stackoverflow.com/questions/12035400/how-can-i-remove-the-no-file-chosen-tooltip-from-a-file-input-in-chrome) – undefined
@ undefined- 아니오 그것은 내가 이미 그것을 읽었 기 때문에 조건에 기반하지 않습니다 ... –
조건을 추가하는 것은 그리 어렵지 않습니다 (_if 그게 유일한 문제입니다). – undefined