开发者

unwanted character in jquery ui tabs

i am using jquery ui tabs for my own custom image gallery, so i开发者_如何学C didn't load the css it comes with. in firefox there is nothing wrong, but in IE and chrome there is this dash character.

in the view source you don't see it, but Inspect Element in chrome shows me:

<li class="ui-state-default ui-corner-top"><a href="#tab-9">_</a></li>

I tried doing something like .ui-corner-top{display:none !important;} but that kills off the tabs completely.

unwanted character in jquery ui tabs


There is a solution.

<a href=""><!--
   spaces here
-->Link text<!--
   spaces there
--></a>

You just have to comment out all spaces before and after the main link text.


You could try adding some extra jQuery after you initiate the tabs to remove the character:

$('.ui-corner-top').find('a').html('&nbsp;');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜