【发布时间】:2016-07-21 11:00:03
【问题描述】:
这是我的对话框
我想删除或移除对话框内多余的空格。我怎样才能实现它?
更多详情请点击我的HTML
<div id="beneficiaries_window">
<?php
$sql1 = "SELECT * FROM beneficiary WHERE id = '$id'";
$result1 = mysql_query($sql1);
?>
<table style="border: 2px solid black;margin:auto;">
<tr>
<th><center>Name<center></th>
<th><center>Action</center></th>
</tr>
<?php
while($row1 = mysql_fetch_array($result1)){
echo "<tr class='beneficiaries_rows' id='".$row1['id']."'>";
echo "<td>".$row1['name']."</td>";
echo "<td>";
echo "<button class='edit_beneficiaries'>EDIT</button>";
echo "<button class='del_beneficiaries'>X</button>";
echo "</td><br/>";
echo "</tr>";
}
?>
</table>
</div>
<button class="beneficiaries" name="beneficiaries">Beneficiaries</button>
和jQuery脚本
jQuery("#beneficiaries_window").dialog({
modal: true,
resizable: false,
draggable: false,
autoOpen: false,
buttons:[{
text: "Close",
click: function(){
jQuery(this).dialog("close");
}
}]
});
//beneficiaries open dialog
jQuery(".beneficiaries").click(function(event){
jQuery("#beneficiaries_window").dialog("open");
event.preventDefault();
});
但在我的 firebug 中,我看到了这个 <br>'s,但它们在 <div> 内没有 <br>
我怎样才能删除这个对这个额外间距一无所知的我?
【问题讨论】:
标签: javascript jquery html jquery-ui jquery-ui-dialog