在li里面怎么显示多行文字呀

fafalong2988 2009-07-21 08:51:36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
#biaoge {
width:525px;
margin:0px 0px 0px 0px;
margin:0;
padding:0;

}
#biaoge li,#biaoge li.biaotou {
list-style-type:none;
width:170px;
height:85px;
line-height:85px;
text-align:left;
float:left;
margin-left:0px;
margin-bottom:0px;
background:#ccc;
}

body {
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
margin-left: 0px;
margin-top: 0px;
}
div {
border-top:1px solid #ff6600;
border-left:1px solid #ff6600;
width:596px!important;
width:600px;
text-align:center;
margin:0 auto;
height:57px;
}
</style>
</head>
<body>
hi<br>
<div>
<ul id="biaoge">
<li class="biaotou" ><div style="width:170px"><h2>主题</h2><br>描述1<br>描述2</div></li>
<li class="biaotou"><b>主题</b></li>
<li class="biaotou"><b>发送时间</b></li>
<li class="biaotou"><b>发送者</b></li>
<li class="biaotou"><b>接收者</b></li>

<li style="float:left;display:cell; background-color:#CCC ">ssdddddddd</li>
<li>sssssssssss</li>
<li>ssssssssss</li>
<li>ssssssssss</li>
<li>sssssssss</li>

</ul>
</div>
<br />

</body>
</html>

我想在每个li里面显示多行<div style="width:170px"><h2>主题</h2><br>描述1<br>描述2</div> 这个怎么实现呀。
谢谢
...全文
4271 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
dodie 2009-07-22
  • 打赏
  • 举报
回复
加<BR>啊!!!
fafalong2988 2009-07-22
  • 打赏
  • 举报
回复
我也用了,可是还是不行
[Quote=引用 3 楼 wjjybx 的回复:]
li 里面是可以嵌套div等元素的
[/Quote]
wjjybx 2009-07-22
  • 打赏
  • 举报
回复
li 里面是可以嵌套div等元素的
fafalong2988 2009-07-22
  • 打赏
  • 举报
回复
加<br>了,不行

61,124

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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