2015-11-22 83 views
0

試圖打開一個新的窗口使用標籤使用目標屬性,但它不工作。這裏是我的代碼:Open in new window

<tr> 
    <td> 
     <?php echo $count;?> 
    </td> 
    <td><a class="oiu" href=<?php echo "eventdetail.php?idno=".$row[ 'E_id'];?>><u><?php echo $row['E_name'];?></u></a> 
    </td> 
    <td><a class="oiu" href=<?php echo "http://maps.google.com/maps?saddr=".$cadd. "&daddr=".$vadd;?> target="_blank" ><u><?php echo $row['Venue'];?><u></a> 
    </td> 
    <td> 
     <?php echo $row[ 'EDate']. ' '.$time;?> 
    </td> 
    <!-- <td><div id="remain"><?php echo "$days, $hours:$minutes:$seconds";?></div></td> --> 
    <td> <a class="icon1" href=<?php echo "update.php?idno=".$eid;?>><span class="glyphicon glyphicon-pencil pencil"></span></a><a class="icon2" href="#myModal2" data-toggle="modal"><span class="glyphicon glyphicon-trash trash"></span></a> 
    </td> 
</tr> 
<?php $count++; 
+0

不工作怎麼樣?你點擊場地鏈接,對吧?你也沒有關閉那裏的下劃線。你應該引用你的屬性值。 – chris85

+0

你能寫出我需要在這個代碼中做出的訣竅嗎 –

+0

我不知道你需要做出什麼樣的改變,你沒有回答我的任何問題.. – chris85

回答

0

讓您target="_blank"第一,然後給你href="link"下面給出並關閉下劃線標記</u>

試試下面的代碼:

<tr> 
<td><?php echo $count;?></td> 
<td ><a class="oiu" href=<?php echo "eventdetail.php?idno=".$row['E_id'];?>><u><?php echo $row['E_name'];?></u></a></td> 
<td><a class="oiu" target="_blank" href=<?php echo "http://maps.google.com/maps?saddr=".$cadd."&daddr=".$vadd;?> ><u><?php echo $row['Venue'];?></u></a></td> 
     <td><?php echo $row['EDate'].' '.$time;?></td> 
     <!-- <td><div id="remain"><?php echo "$days, $hours:$minutes:$seconds";?></div></td> --> 
     <td> <a class="icon1" href=<?php echo "update.php?idno=".$eid;?>><span class="glyphicon glyphicon-pencil pencil"></span></a><a class="icon2" href="#myModal2" data-toggle="modal"><span class="glyphicon glyphicon-trash trash"></span></a></td> 
    </tr> 
相關問題