HTML中单词之间的尴尬间距

时间:2013-11-15 14:58:44

标签: html css

我网页上的文字有以下尴尬的间距问题:

Resulting HTML

它在asp.net中。我尝试过以下方法:

CSS

.optionClosed
        {
            font-size: large;
            font-weight:bold;
            color:#004C7E;
        }

HTML

<table border="0px" width="50%" style="float:left; display:inline-table;" >
     <tr id="optCloseMessage" runat="server"  align="justify" style="display:none;">
        <td>                                    
           <span class="optionClosed">  An option has already been selected for this month. If you would like to make further changes to your account, please cancel your pending option</span>                                         
        </td>
     </tr>
</table>

我还尝试将<span>替换为<p>代码,并且不包含任何代码,只使用<td class="optionClosed">

有没有办法摆脱间距问题或对我设置错误的一些洞察力?感谢。

2 个答案:

答案 0 :(得分:4)

您需要从html中删除align="justify"

答案 1 :(得分:4)

align="justify" ......拿出来。