标题:请问这个怎么弄?
只看楼主
cctvkmn
Rank: 1
等 级:新手上路
帖 子:98
专家分:0
注 册:2008-11-22
结帖率:63.16%
 问题点数:0 回复次数:0 
请问这个怎么弄?
程序代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

"http://www.>
<html xmlns="http://www.>
<head id="Head1" runat="server">
<title>虚线</title>
</head>
<style type="text/css">


li a{
display:inline-block;
text-decoration:none;
color:#000;
}
li a:hover{
text-decoration:underline;
}
.div1
{

   padding-top:8px;
   font-size:12px;
   border:1px solid #ccc;
   width:220px;
   margin:0 auto;
   padding-right:8px;
}



.ct
{

   float:right;
  
}

<!--background: url(http://img.) 

repeat-x 0 50%; -->
</style>

<body>
<form id="form1">
<div class="div1">
<ol>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
<li><span class="ct">123456</span><span><a href="#">[言情]</a></span><span><a href="#">官家

</a></span></li>
</ol>
</div>





</form>
</body> 

</html>



我希望这样显示:1.[言情]官家-------------123456 这条虚线自适应宽度,怎么实现?

[ 本帖最后由 cctvkmn 于 2011-10-21 02:16 编辑 ]
搜索更多相关主题的帖子: PUBLIC html 
2011-10-21 02:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-353065-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.111523 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved