HTML
<a href="http://www.baidu.com" style="display: inline-block; width: 100%; height: 150px;">
<div class="divcss" style="width:100px;height:100px;background-color:#ff6a00;"></div>
</a>
JS:引入jquery之后在测试
<script type="text/javascript">
$(".divcss").click(function () {
alert();
return false;
});
</script>