我添加了 javascript 来检测何时单击链接,这可以正常工作,但是现在链接无法正常工作(即它们不会将用户带到链接页面)。
HTML:
<div class="designflow" style="padding-left:50px;padding-right:0px;padding-top:0px;padding-bottom:15px;margin-top:0px;float:left; font-size:18px; color: gray; height:150px; width:150px;margin-left:auto;margin-right:auto;display:inline-block;">
<a href = "/manufacturing/" class = "designflow" id = "manufacturing">
<img src="{{STATIC_URL}}pinax/images/manufacturing.png" width = "150px" style=margin-bottom:0px;" alt=""><br>
<p style="position:absolute;bottom:25px;padding-left: 0px; padding-right:0px; width:150px;text-align:center;">Manufacturing</p></a>
</div>
查询:
jQuery( 'div.designflow a' )
.click(function() {
do_the_click( this.id );
return false;
});
function do_the_click( designstage )
{
alert(designstage);
}