【问题标题】:Getting rid of disc in list item摆脱列表项中的光盘
【发布时间】:2010-10-01 01:25:26
【问题描述】:

我正在使用 jQuery 和 jQuery UI 选项卡开发一个网站。出于某种原因,我的标签(无序列表)在除 OS X 上的 Firefox 3 之外的所有浏览器(迄今为止已测试)中显示它们的项目符号。它在 Safari OS X、FF 3 Windows 和 Google Chrome Windows 中显示它们(IE 显示所有div 在角落里的一大堆里……但那是另一回事了)。

好的,进入真正的内容。看来我已经应用了 list-style-type: none 任何我可以并且似乎无法摆脱它们的地方。以下是 firebug 报告的带有恶意子弹的 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 页面还是什么?

【问题讨论】:

    标签: javascript jquery html css html-lists


    【解决方案1】:

    您是否将 list-style:none 添加到包含 li 标签的 ol/ul 标签中?有时,浏览器需要将 list-style 属性放置在列表中,而不是单独的列表元素中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-30
      • 1970-01-01
      • 2023-04-05
      • 2023-04-07
      • 2018-12-30
      • 1970-01-01
      • 2019-04-30
      • 2013-06-14
      相关资源
      最近更新 更多