0
'Username'이 한 필드에 쓰여졌지만 클릭하면 회색으로 변하고 텍스트가 검게 변하며 텍스트로 시작하는 'Password'가있는 현대 로그인 양식을 작성했습니다. 입력하지만 클릭 할 때 비밀번호 유형으로 변경되지만 텍스트로 유지됩니다. 이 이음새는 IE8에서만 나타납니다. 왜 그런가?Internet Explorer에서 입력 유형을 변경할 수없는 이유는 무엇입니까?
onFocus='if (this.value == "Password"){ this.value = ""; this.type = "password";}'
가능한 복제본 [IE8에서 깨진 HTML 입력 유형 스와핑?] (http://stackoverflow.com/questions/1435682/html-input-type-swapping-broken-in-ie8) – David