本文介绍了消失的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我也把这个贴出来作为对另一个字符串的回复,我不明白为什么?我认为,在美丽闪烁的屏幕前面,很多时候都会花费很多时间。 当我使用display:inline;时,一件奇怪的事情正在发生。和背景: url();我的对象(< div>你称之为对象吗?)消失了。 解决方案 < div>是一种元素类型。它的一个特定实例被称为元素。 所以基本上,你说当你做一个< div>元素内联和 设置背景,你看不到它。 元素中是否有任何实际内容?一个未替换的内联元素 通常没有大小,除非里面有东西。如果你提供了一个测试用例的URL,它会更有帮助。 - Jim Dabell < div>是一种元素类型。它的一个特定实例被称为元素。所以基本上,你说当你创建一个< div>元素内联和设置背景,你看不到它。 元素中是否有任何实际内容?一个未被替换的内联元素通常没有大小,除非里面有东西。如果你提供了一个测试用例的URL,它会更有帮助。 高度(和宽度)属性不适用于未替换的内联 元素。 - David Dorward< http://dorward.me.uk/> I also posted this as a reply to another string, I have no idea why? Toomuch time infront of the pretty blinking screen I suppose.A curious thing is happening, when I use display:inline; and background:url(); my object(<div> do you call that an object?) disappears. 解决方案<div> is an element type. A particular instance of it is called an element.So basically, you are saying that when you make a <div> element inline andset a background, you can''t see it.Is there anything actually in the element? A non-replaced inline elementdoesn''t usually have a size unless there is something inside it. It wouldbe more helpful if you supplied a URL to a testcase.--Jim Dabell <div> is an element type. A particular instance of it is called an element. So basically, you are saying that when you make a <div> element inline and set a background, you can''t see it. Is there anything actually in the element? A non-replaced inline element doesn''t usually have a size unless there is something inside it. It would be more helpful if you supplied a URL to a testcase.The height (and width) properties do not apply to non-replaced inlineelements.--David Dorward <http://dorward.me.uk/> 这篇关于消失的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 13:00