首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

difference between "visibility:hidden" and "display:none"

2012-08-24 
difference between visibility:hidden and display:nonevisibility:hidden hides an element, but it

difference between "visibility:hidden" and "display:none"

visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout.

?

display:none hides an element, and it will not take up any space. The element will be hidden, and the page will be displayed as the element is not there:

?

http://www.w3schools.com/css/css_display_visibility.asp

热点排行