11 九月 2008 @ 6:17 上午 

tabtestboxtest 瀏覽器對連結的預設動作都會有一個連結虛框,習慣了就覺得無所謂,但是若遇到非連結的物件多了這個虛框就會覺得很礙眼,例如tab滑動門就是一個例子,還有影像地圖(Image MAP), 如果真的是連結也就算了,如果不是連結看那噁心的連結真是看了就礙眼,另外像現在很多AJAX的動作,有些並不代表連結,多了這個虛框就是怪怪的,所以要想辦法把這個虛框弄掉。

其實相當簡單,一行就搞定。

<a href="#" onfocus="this.blur()">標籤一</a>

<area shape="poly" coords="503,470,527,461,552,446,549,425,549" href="#" onfocus="this.blur()" />

<!-- 也可以用CSS直接搞定 -->

<style>
a {blr:e-xpression(this.onFocus=this.blur())}
area {blr:e-xpression(this.onFocus=this.blur())}
</style>
打完收工!
Posted By: BLACKBING
Last Edit: 11 九月 2008 @ 06:17 上午

EmailPermalink
Tags
Tags:
Categories: Programing


 

Responses to this post » (None)

 
Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


 Last 50 Posts
 Back
Change Theme...
  • Users » 25
  • Posts/Pages » 64
  • Comments » 35
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

About Me



    No Child Pages.

留言板



    No Child Pages.

Album



    No Child Pages.