我是我项目的新手。这里我们使用Javascript,CSS和HTML来显示网页。我对这些都不熟悉。在IE8中,单词中的字母垂直显示,但相同的代码在IE7中有效。
它应显示为“频道首选项”而不是
ç
^ h
一个
ñ
ñ
Ë
升
点
[R
Ë
˚F
[R
Ë
ñ
ç
ë
CSS参数如下::
.SubjectAreaChoiceAnchor, .SubjectAreaChoiceAnchor:link, .SubjectAreaChoiceAnchor:visited
{
font: normal 11px Tahoma;
color: #000000;
padding: 2px 2px 2px 29px;
display: block;
cursor: default;
white-space: nowrap;
text-decoration: none;
}
.SubjectAreaChoiceAnchor:hover
{
color: black;
background-color: #D1DDE7;
padding: 1px 2px 1px 29px;
border-top: solid 1px white;
border-bottom: solid 1px white;
margin: 0px 0px 0px 0px;
}
HTML看起来像这样::
< div class="dialogBody" style="max-height: 400px; overflow-y: auto;">
< div style="display: block;" id="idExtTagSelector">
< table cellspacing="0" cellpadding="0">
< a onclick="WebExpressionSelector.onChoose('idExtTagSelector','channelPref','','true','Channel Preference'); return false;" href="javascript:void(null)" displayname="Channel Preference" usequotes="true" defaultvalue="" name="channelPref" eid="idExtTagSelector" class="SubjectAreaChoiceAnchor" id="idWebExprchannelPref">Channel Preference
< /a>
< /table>< /div>< /div>
请帮助。谢谢。提前 Prathima
答案 0 :(得分:2)
如上所述,您的HTML表格格式不正确。你有一张桌子的正确方法如下:
<table>
<tr>
<td>content</td>
</tr>
</table>
在您的情况下,如果您必须使用表格来获取彼此相邻的所有值,则表格应如下所示:
<table>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</table>
您还应该只将表格用于表格数据。其他任何东西都应该是通过CSS的样式。
答案 1 :(得分:0)
首先,您必须正确键入html,特别是关闭标记,并且表格结构内部至少需要<tr>
和<td>
。然后你可以看到问题是否仍然存在,我们可以尝试找到解决方案。
<div class="dialogBody" style="max-height: 400px; overflow-y: auto;">
<div style="display: block;" id="idExtTagSelector">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<a onclick="WebExpressionSelector.onChoose('idExtTagSelector','channelPref','','true','Channel Preference'); return false;" href="javascript:void(null)" displayname="Channel Preference" usequotes="true" defaultvalue="" name="channelPref" eid="idExtTagSelector" class="SubjectAreaChoiceAnchor" id="idWebExprchannelPref">Channel Preference
</a>
</td>
</tr>
</table>
</div>
</div>