제목이 표시됨. 아무도이 두 가지의 차이점을 말해 줄 수 있습니까? 코드 숨김에서 runat=server
으로 표시된 요소를 숨기는 데 사용됩니다. 감사.System.Web.UI.Control.Visible = False 대 System.Web.UI.HtmlControls.Attributes 스타일 "display none"
0
A
답변
1
Visible false 속성이 설정된 경우; 컨트롤이 브라우저에 렌더링되지 않습니다 (document.getElementById는 null을 나타냄)
표시가있는 경우 : 아무 것도 해당하지 않습니다. 그것은 브라우저에 있지만 숨겨져있을 것입니다.
2
display:none
의 경우 브라우저에서 HTML을 렌더링 할 때 개발자 툴바에서 변경하여 제어 할 수 있지만 System.Web.UI.Control.Visible=False
의 경우 컨트롤 자체는 브라우저에서 렌더링되지 않습니다.
관련 문제
- 1. Jquery animate display : none
- 2. 요소 스타일 "display : none"일 때 bxslider 축소
- 3. Facebook 맞춤 스타일 : visibility hidden works, display none does not
- 4. jQuery display = "none"없이 요소 가져 오기
- 5. div : "display : none"스타일이 표시됩니다.
- 6. IE8 no honoring display : none
- 7. Mailchimp Toggle display none/block
- 8. display : none does not work
- 9. 모바일 : display : none 이상한 행동
- 10. display : none 및 scrolling text
- 11. CSS style = "display : none"대신
- 12. media = "print"및 .noprint {display : none; }는
- 13. "display : none"이있는 요소가 계속 표시됩니다.
- 14. .comment {Display : none;} 1 페이지에서만 작동
- 15. CSS 스타일에 의한 ElementNotVisibleException "display : none;"
- 16. divs display none ie6 및 jquery 토글
- 17. display = none 인 경우 클래스 제거
- 18. .slideUp 설정을 금지합니다. display : none on complete
- 19. display : none 일 때 요소에 너비를 지정하십시오.
- 20. 허니팟 captcha는 'display : none;'보다 복잡해야합니까?
- 21. ! important 및 display : none 및 .height() weirdness
- 22. "display : none"이 컨트롤을 비효율적으로 렌더링합니까?
- 23. "display : none"d 요소가 차지하는 '공백'제거
- 24. 설정에서 jQuery 사이클 중지 display : none;
- 25. Jcarousel and display : none + SEO 우려
- 26. display 대 setNeedsDisplay
- 27. 스타일이 display 인 경우 src가 요청을 내리십니까 : none
- 28. [Display (AutoGenerateField = false)] 및 [HiddenInput (DisplayValue = false)]이있는 이유는 무엇입니까?
- 29. Objective-C TRUE/FALSE 대 true/false
- 30. HiddenInput (DisplayValue = false)] 대 [ScaffoldColumn (false)]