我们在做网页设计的时候通常会遇到网页中有不想展示为锚文本链接,但又要用户能点击的页面.比如你的转化页面.一般我们可通过javascript来设置.大量设置的时候可能很麻烦.我们可以通过写css样式来实现:
下面seomine提供一个方式:
<div onclick="window.open('http://seomine.iteye.com/');" style=”cursor:pointer;”
title="http://seomine.iteye.com/">
open in new window
</div>
<div onclick="window.location = 'http://seomine.iteye.com/';" title="http://seomine.iteye.com/">
open in here
</div>
设计div来打开需要为点击的链接