你好,我想使div的我有我的td的行为作为href的。我怎样才能做到这一点?HTML DIV的TD内部作为href的
也许与jQuery或JavaScript,如果不与HTML ?? ??
<table class="mgmtview_table" align="center">
<tr>
<td class="content" id="content">
<table class="content_table">
<tr>
<td class="topBar">
<div id="div_view" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view2" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view3" align="center">FusionCharts will load here!</div>
</td>
</tr>
<tr>
<td class="topBar">
<div id="div_view4" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view5" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view6" align="center">FusionCharts will load here!</div>
</td>
</tr>
<tr>
<td class="topBar">
<div id="div_view7" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view8" align="center">FusionCharts will load here!</div>
</td>
<td class="topBar">
<div id="div_view9" align="center">FusionCharts will load here!</div>
</td>
</tr>
为什么不只是使用标签? – manish
我同意伊马尼亚语 - 你为什么要这么做? –
确实。你可以将它们设置为'display:block'来使它们像一个块元素(就像一个div)一样,所以你可以像使用div一样给它赋予宽度,高度和其他属性。根本不需要Javascript。 – GolezTrol