为什么我的list-style-type起不了作用呢?

cexpert cexpert 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<style type="text/css">
<!--
* {margin=0px;padding:0px;}
body { width:800px;
margin:0 auto;
font:12px sans-serif;
border:1px solid #5F9EA0;
}
#header {width:800px;
border:0px solid blue;
text-align:center;
margin:0px;padding:0px;
}
#globalnav {

list-style-type:none; /*这里我定义了没有符号呢 */
height:25px;
width:780px;
color:#000;
padding:10px;
background-color:#B0C4DE;
}
#globalnav li {float:left;
margin:1px;
}
#globalnav li a{

background:yellow;

}
#globalnav li a:hover{
color:#000;
background-color:#fff;
}
#content {
height:300px;
}
#content h2 {
font-size: 16px;
padding: 1px 2px 0 5px;
}
#content p { text-indent: 2em;}
#footer {
height:50px;
font:14px bold;
background-color:#B0C4DE;
text-align:center;
line-height:1em;
overflow:hidden;
}
-->
</style>
<title>I must be successfuy!</title>
</head>
<body>
<div id="header"><img src="head.jpg" alt="logo"></div>
<div id="globalnav"><ul><li><a href="#">index</a></li><li>movie</li></ul></div>
/*这里还是不起作用呢 */
<div id="content"><h2>ccontent</h2><p>you're far to kind</p></div>
<div id="footer"><p>love | sad | died | grow | hate </div>

</body>
</html>

为什么会这样呢?
...全文

相关推荐

CSS list-style-type属性使用方法

主要介绍了CSS list-style-type属性使用方法,需要的朋友可以参考下

weixin_38673924

CSS 有序或者无序列表的前面的标记 list-style-type 属性的实现

例子: &lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; ul.none{list-style-type:none} ul.circle {list-style-type:circle} ul.square {list-style-type:square} ol.upper-roman {list-style-type:upper-roman} ol.lower-alpha {list-style-type:lower-alpha} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; <p>list-style-type none:</p> &lt;ul class="non

weixin_38726441

CSS list-style属性控制li标签样式示例代码

list_style属性用于修改列表的属性,下面为大家介绍下CSS list-style属性控制li标签样式的具体实现,感兴趣的朋友可以了解下

weixin_38698433

CSS list-style熟悉解释

原来工作中曾经碰到过UL列表里一些异常的表现, 加上昨天看到了http://bbs.blueidea.com/thread-2984871-1-1.html 这个贴子,所以测试了一下list-style的各种属性,发现了一个有意思的现象 先看一下CSS手册中,对于list-style的解释 定义和用法 list-style 简写属性在一个声明中设置所有的列表属性。 说明 该属性是一个简写属性,涵盖了所有其他列表样式属性。由于它应用到所有 display 为 list-item 的元素,所以在普通的 HTML 和 XHTML 中只能用于 li 元素,不过实际上它可以应用到任何元素,并由

weixin_38687505

2.2.36 CSS列表属性(一)列表项目符号:list-style-type.docx

2.2.36 CSS列表属性(一)列表项目符号:list-style-type.docx

Cheng-Dashi
评论 12
收藏 已收藏
分享
返回顶部
cexpert
CSS 61,116 成员 60,701 内容