郁闷了~~一个CSS和FF的问题~~~~~

now00000 2009-08-13 05:42:59


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body style="margin:0PX">
<div>
<div style="background-color:#FB1E7B; width:776px;">
<ul style="margin:0px; padding:0px; margin-top:100px;">
1111111111
</ul></div>
</div>
</body>
</html>



运行FF执行上面的代码~~应该显示<ul>的margin-top:100px的效果~~~
怎么却变成<ul>的父元素执行margin-top:100px出来的效果~~~

...全文
92 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
now00000 2009-08-13
  • 打赏
  • 举报
回复
本来在这里应该是<ul>的margin-top:100px的效果~~

结果变成<ul>的父元素<div>的margin-top:100px的效果~~

如下

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body style="margin:0PX">
<div>
<div style="background-color:#FB1E7B; width:776px;margin-top:100px;">
<ul style="margin:0px; padding:0px;">
1111111111
</ul></div>
</div>
</body>
</html>

number123456 2009-08-13
  • 打赏
  • 举报
回复
有什么问题吗?没明白什么意思
rivertrue 2009-08-13
  • 打赏
  • 举报
回复
用 padding-top

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧