链接没有出现在ie 8中,但它们确实出现在chrome中

时间:2012-01-09 20:30:09

标签: html google-chrome internet-explorer-8

我有一些常规的花园种类链接(这是asp.net MVC 2所以路由可能有点奇怪),它们出现在chrome但不是8中。这是怎么回事? Here the link doesn't show up

这里的Link确实出现在chrome中...... enter image description here

我所指的链接是页面左下角的Add Patient和Add Encounter链接。 这是生成链接的花园种类锚标签......

<a class="AddPatDlg" href="/PatientACO/AddPatient?PopID=1" title="Add Patient ACO Data">Add Patient</a>
<a class="AcoData" href="/PatientACO/AddEncounter?PopID=1" title="Add New Patient Encounter">Add Encounter</a>

我是否会失去理智?这怎么可能呢?

*我刚注意到,如果我向上滚动到无法看到链接的位置并向下滚动,则会显示链接。当我将鼠标移到它们上面时,它们会消失......帮助*

更新2:更多代码

<div id="countdownDiv" style="display:none" align="left">  
<p><font color="#990000"><b>This session has expired.  Please Refresh the page</b> </font></p>
<form action="/PatientACO/TemplateInfo?PopulationID=1&amp;ActiveAll=1" method="post"> <input type="submit" value="Refresh" id="test" /></form></div>
<div id="frReloadDiv" align="right">
  <form action="/PatientACO/TemplateInfo?PopulationID=1&amp;ActiveAll=0" method="post"> 

    <input type="submit" value="Show All" id="test1" /></form><form action="/PatientACO/TemplateInfo?PopulationID=1&amp;ActiveAll=1" method="post"> 

    <input type="submit" value="Active Only" id="Submit1" style="display:none"/></form>
</div>
<div id="tempplateInfo">
<div id="templateResult" class="scroll"></div>



<table id="table1" class="scroll" cellpadding="0" cellspacing="0">
<thead>
    <tr>
    <th>Edit</th>
    <th>MRN</th>
    <th>Hospital Fin</th>
    <th>First Name</th>
    <th>Last Name</th>
    <th>Date of birth</th>
    <th>Completed Pathway</th>
    <th>Completed Pathway Reason</th>
    <th>PCP Appointment</th>
    <th>Specialist Appointment</th>
    <th>Admit Date</th>
    <th>Discharge Date</th>
    <th>Discharge Disposition</th>
    <th>Discharge To</th>
    <th>Discharge Advocate Call</th>
    <th>Home Health Care Accepted</th>     
    <th>Safe Landing Accepted</th>
    <th>PCP Name</th>
    <th>PCP Phone</th>
    <th>PCP Appointment Location</th>
    <th>Specialist Name</th>
    <th>Specialist Phone</th>
    <th>Specialist Appointment Location</th>
    <th>Comments</th>
    <th>Patient Room Phone</th>    
    <th>Phone</th>         
    <th>Payor</th>
    <th>MRN Type</th>       
    </tr>  
    </thead>
    <tbody>
</tbody>
</table>

<a class="AddPatDlg" href="/PatientACO/AddPatient?PopID=1" title="Add Patient ACO  Data">Add Patient</a>
<a class="AcoData" href="/PatientACO/AddEncounter?PopID=1" title="Add New Patient  Encounter">Add Encounter</a>

    <p style="text-align:left">
    <b>

    </b>
    </p>     
 </div>

也许那个左对齐表格会让我失去一个循环。 更新:左对齐似乎没有做任何事情......似乎“text-align:right”没有修复任何内容

我还注意到在兼容模式下,问题根本没有出现。

1 个答案:

答案 0 :(得分:1)

尝试在锚点周围包裹一个元素:

<p class="action">
    <a class="AddPatDlg" href="#">Add Patient</a>
    <a class="AcoData" href="#">Add Encounter</a>
</p>

然后相应地设置元素的样式:

.action {
    clear: both;
    display: block;
}