li span 时间向右排版问题

<!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> 
<title>li span 时间向右排版问题</title>
<style>
.list
{height:100%;  margin:10px;}
.list ul
{ margin:0px;}
.list ul li
{ list-style:none;line-height:22px;}
.list ul li span
{ float:right;padding-right:10px;}
.list ul li a
{ color:#000;}
</style>
</head>
<body> 
     <div class="list">
      <ul>
         <li><span>2011-01-21</span><href="#">li span 时间向右排版问题</a></li>
            <li><span>2011-01-21</span><href="#">li span 时间向右排版问题</a></li> 
        </ul>
     </div> 
</body>
</html>
原文地址:https://www.cnblogs.com/lecone/p/2194165.html