2009-01-13 95 views
0

我正在使用jQuery和jQuery UI選項卡開發網站。出於某種原因,我的選項卡(無序列表)在所有瀏覽器(迄今爲止測試過的)中都顯示了它們的項目符號,除了OS X上的Firefox 3以外。它在Safari OS X,FF 3 Windows和Google Chrome Windows中顯示它們(IE顯示所有在角落裏的一大堆......但這是另一個故事)。擺脫列表項目中的光盤

好的,在它的實際肉。看起來我已經應用了list-style-type:我無處不在,無法擺脫它們。下面是關於與流氓子彈的li元素是什麼螢火蟲報告:

font-family "Trebuchet MS",Trebuchet,Verdana,Helvetica,Arial,sans-serif 
font-size 12px 
font-weight bold 
font-style normal 
color #000000 
text-transform none 
text-decoration none 
letter-spacing normal 
word-spacing normal 
line-height 14.4px 
text-align center 
vertical-align baseline 
direction ltr 
Background 
background-color transparent 
background-image url(http://agrifuels-dev/media/css/tab.png) 
background-repeat no-repeat 
background-position 0 -50px 
background-attachment scroll 
opacity 1 
Box Model 
width 64px 
height 18px 
top auto 
right auto 
bottom auto 
left auto 
margin-top 0 
margin-right 0 
margin-bottom 0 
margin-left 0 
padding-top 6px 
padding-right 0 
padding-bottom 1px 
padding-left 10px 
border-top-width 0 
border-right-width 0 
border-bottom-width 0 
border-left-width 0 
border-top-color #000000 
border-right-color #000000 
border-bottom-color #000000 
border-left-color #000000 
border-top-style none 
border-right-style none 
border-bottom-style none 
border-left-style none 
Layout 
position static 
display block 
visibility visible 
z-index auto 
overflow-x visible 
overflow-y visible 
white-space nowrap 
clip auto 
float none 
clear none 
-moz-box-sizing content-box 
Other 
cursor text 
list-style-image none 
list-style-position outside 
list-style-type disc 
marker-offset auto 
0 
86 
offset 
margin 
0 
0 
0 
1 
border 
0 
0 
0 
0 
padding 
0 
0 
0 
0 
84 x 25 
clientLeft 0 
clientTop 0 
contentEditable "inherit" 
type "" 
value -1 
getBoundingClientRect getBoundingClientRect() 
getClientRects getClientRects() 
getElementsByClassName getElementsByClassName() 
scrollIntoView scrollIntoView() 
attributes NamedNodeMap 
baseURI "http://agrifuels-dev/qcs/management_responsibility#" 
childNodes [a management...fragment-2] 
className "" 
clientHeight 25 
clientWidth 84 
dir "" 
firstChild a management...fragment-2 
id "" 
innerHTML "<a href="#fragment-2"><span>Closed</span></a>" 
lang "" 
lastChild a management...fragment-2 
localName "LI" 
namespaceURI null 
nextSibling "\n " 
nodeName "LI" 
nodeType 1 
nodeValue null 
offsetHeight 25 
offsetLeft 86 
offsetParent div.tab_container 
offsetTop 0 
offsetWidth 84 
ownerDocument Document management_responsibility# 
parentNode ul.policy_page_tabs 
prefix null 
previousSibling "\n " 
scrollHeight 25 
scrollLeft 0 
scrollTop 0 
scrollWidth 84 
spellcheck false 
style CSSStyleDeclaration 
tabIndex -1 
tagName "LI" 
textContent  "Closed" 
title "" 

list-style-type: disc似乎是從「html.css」,這是不是我的項目的一部分到來。這可能是一個從瀏覽器的css頁面或什麼?

回答

4

您是否將包含li標籤的ol/ul標籤添加到list-style:none?有時,瀏覽器需要將列表樣式屬性放在列表中,而不是單個列表元素。