嵌套的<跨度>导致新行跨度>
我有包含 *
的 jsp 页面,
我使用 jsp include 将其包含在另一个 jsp 页面上,如下所示
出生日期:<%@include file="/jsps/includes/requiredFieldsLabel.jsp"%>
这很好用。没有新线。
但是,当我将其嵌套在另一个范围内时,如下所示:
Date of Birth:<span id="includeMandatoryDOB"><%@include file="/jsps/includes/requiredFieldsLabel.jsp"%></span>
它会创建一个新行。我尝试过强制显示:内联,但它什么也没做(正如我预期的那样)。没有其他样式元素。
这是在 IE6 上,有什么想法吗?在 chrome 上效果很好,没试过 firefox。但 IE6 是必需的。
I have jsp page that contains<span class="requiredFieldsMessageAsterix">*</span>
I use a jsp include to include this on another jsp page as here
Date of Birth:<%@include file="/jsps/includes/requiredFieldsLabel.jsp"%>
This works fine. No new line.
However when I nest this include within another span as here :
Date of Birth:<span id="includeMandatoryDOB"><%@include file="/jsps/includes/requiredFieldsLabel.jsp"%></span>
It creates a new line. I have tried forcing display:inline, but it did nothing(as I expected). There is no other styling the elements.
This is on IE6, any ideas ? It works fine on chrome, not tried firefox. But it is required for IE6.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要下载 IE6/IE7 的 IE 开发工具栏,以通过单击选择元素并确定哪些元素的大小由使用线框视图:
http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
注意:IE8+ 具有内置开发工具栏,按 F12 即可使用
You may want to download IE developer toolbar for IE6/IE7 to use select element by click and determine which elements are being sized by using the wireframe view:
http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
Note: IE8+ have the dev toolbar builtin and usable by pressing F12