Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 按钮上带有空格的文本在IE中消失_Html_Jsp_Jsf_Button_Internet Explorer - Fatal编程技术网

Html 按钮上带有空格的文本在IE中消失

Html 按钮上带有空格的文本在IE中消失,html,jsp,jsf,button,internet-explorer,Html,Jsp,Jsf,Button,Internet Explorer,我有6个按钮要显示在工具栏上,这些按钮必须以一种分组的方式显示,即3个按钮后跟一点空间,然后再显示另外3个按钮。我使用JSF作为UI框架 问题在于,当我在第一组中的最后一个按钮有文本时,必须显示中间有空格的文本,即“单击此处”,仅显示单击 实际上,我正在使用TableHTML标记对按钮集进行分组 <table> <tr> <td> <%-- 1st 3 buttons --%>

我有6个按钮要显示在工具栏上,这些按钮必须以一种分组的方式显示,即3个按钮后跟一点空间,然后再显示另外3个按钮。我使用JSF作为UI框架

问题在于,当我在第一组中的最后一个按钮有文本时,必须显示中间有空格的文本,即“单击此处”,仅显示单击

实际上,我正在使用TableHTML标记对按钮集进行分组

<table>
    <tr>
        <td>
            <%-- 1st 3 buttons --%>
            <%-- the last button here has the text "Click here", But only Click is displayed in UI --%>
       </td>
       <td></td>
       <td></td>
       <%-- This is used to get the gap between group of buttons and this is what is causing the issue --%>
       <td>
           <%-- Another 3 buttons --%>
       </td>
    </tr>
</table>

其中一个按钮的代码(所有其他按钮都以类似方式呈现)


IE不会呈现“空”表格单元格。将
放入其中,使IE渲染它们

<td>&nbsp;</td>

也就是说,我强烈建议你多了解一些。这是一个简单的解决方案,它使用
边距

IE不会呈现“空”表格单元格。将
放入其中,使IE渲染它们

<td>&nbsp;</td>


也就是说,我强烈建议你多了解一些。这是一个使用
margin

的简单修复方法。请发布发出按钮的代码,并给出生成的HTML。什么是
p:
?Primefaces?请发布发出按钮的代码,并给出生成的HTML。什么是
p:
?Primefaces?谢谢你的回复,巴鲁,但这没用。我已经发现,让表格本身对按钮进行分组是造成问题的原因。非常感谢,我能够通过设置css属性宽度来修复它:100%用于TDThank for ur response balu,但tat Ding无法工作。我已经发现,让表格本身对按钮进行分组是造成问题的原因。非常感谢,我可以通过设置css属性宽度来修复它:100%用于td