<!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=utf-8" />
<title>无标题文档</title>
</head>
<body>
<style type="text/css">
*{ margin:0; padding:0; font:12px/1.5 arial; list-style:none;}
.comment{ width:400px; margin-left:200px; background-color:#0ff;}
.children .comment{ margin-left:50px; width:auto; background-color:#ff0;}
.comment-body{ position:relative; padding-bottom:80px;}
.comment-author{ position:absolute; top:0; left:-200px;}
.comment-author:after{ content:""; position:absolute; top:5px; left:50px; display:block; width:150px; height:8px; background:#f0f;}/*为毛不用标签实现什么什么环境使用呢*/
.comment-meta{ position:absolute; top:20px; left:-200px;}
</style>
<ol class="commentlist">
<li class="comment">
<div class="comment-body">
<div class="comment-author">Philipp Schmitt</div>
<div class="comment-meta">10/26/2009</div>
<p>The Facebook Sprite. Everything in one place ;)</p>
</div>
<ul class="children">
<li class="comment">
<div class="comment-body">
<div class="comment-author">Philipp Schmitt</div>
<div class="comment-meta">10/26/2009</div>
<p>The Facebook Sprite. Everything in one place ;)</p>
</div>
</li>
</ul>
</li>
</ol>
</body>
</html>
【布局】三
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
承前启后,Java对象内存布局和对象头JVM Java
-
基本CSS布局三
基本CSS布局三 图片视频网格
基本CSS -
html双飞翼布局-三栏布局
<!DOCTYPE html><html> <head> <meta charset="utf-8">
双飞翼布局 三栏布局 html css -
三栏布局之双飞翼布局
效果图
CSS