Here\'s an example code
I\'ve been wondering why the background-image doesn\'t show up unless I specific the image\'s width and height in pixels. I trie
background-image
Your element don't have any content, so the height is 0px. The width of the is still 100%. If you add any content to the div it will have some height and it will show a portion of image. by default has the height of the window, so you can see the background-image. 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
element don't have any content, so the height is 0px. The width of the is still 100%. If you add any content to the div it will have some height and it will show a portion of image. by default has the height of the window, so you can see the background-image. 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
height is 0px. The width of the is still 100%. If you add any content to the div it will have some height and it will show a portion of image. by default has the height of the window, so you can see the background-image. 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
is still 100%. If you add any content to the div it will have some height and it will show a portion of image. by default has the height of the window, so you can see the background-image. 0 讨论(0) 查看其它5个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复