有什么方法可以结束特定的DIV? [英] Any way to end a specific DIV?

查看:69
本文介绍了有什么方法可以结束特定的DIV?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个DIV元素.一个是容器,另一个是盒子.容器DIV中有三个盒子.我使用CSS工具箱.这是我使用的代码:

Hi,

I''ev two DIV elements. One is container, other is box. There ar three boxes in the container DIV. I use CSS toolip for the boxes. This is the code I use:

<div class="conatiner">
<div class='container'>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

<a href='#' class='tooltp'> <div class="box"></div><span>This is the tooltip text</span></a>

</div>



Firefox出现问题.它认为工具提示必须显示在容器DIV的右侧,而工具提示则必须显示在框DIV的右侧.有什么方法可以指定哪个DIV结束?我的意思是这样的:



The problem occurs with Firefox. It thinks that the tooltip has to be displayed right to the container DIV, whereas , it has to be displayed right to the box DIV. Is there any way that I can specify that which DIV is ending? I mean something like this :

</div class="box">



谢谢!



Thanks!

推荐答案

不,没有这样的方法.不仅您的这样的东西"显示不存在的语法,不仅没有任何等效的语法,而且这种语法由于其完全冗余而没有任何意义 >:HTML处理器始终通过上下文知道哪个元素结束.这不是很明显吗?

同样,这个不存在的问题(是的,不仅语法不存在,而且问题本身也不存在)与样式问题无关.换句话说:渲染问题可能存在,但是您不正确地假设其性质.

其余的需要更多信息.您有CSS问题吗?好的,请提供一个完整的代码示例,包括CSS.您可以在一个带有嵌入式样式表的简短HTML文件中显示示例.如果您可以通过解决问题的方式来解决此问题,请使用改进问题",不要忘了准确地写出您期望看到的内容以及Firefox渲染中的错误之处.

—SA
No, there is no such way. Not only your "something like this" shows non-existing syntax, and not only there is no any equivalent syntax, but such syntax would not make any sense due to its total redundancy: which element is ending is always known to HTML processor through the context. Isn''t this obvious?

Also, this non-existing problem (yes, not only the syntax does not exist, but the problem itself also does not exist) is not related to the problem of styles. In other words: the rendering problem may exist, but you hypothesize on its nature inaccurately.

The rest of it needs some more information. You have the problem with CSS? OK, please present a complete code sample, including CSS. You can present the sample in just one short HTML file with embedded style sheet. If you can do it the way it reproduces the problem, please use "Improve question", don''t forget to write what you expected to see and what''s wrong in Firefox rendering, exactly.

—SA


这篇关于有什么方法可以结束特定的DIV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆