Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑问] ●●●懂css+html來一下 想問一下排列問題

[复制链接]
2038 发表于 2009-7-29 18:50:12 | 显示全部楼层 |阅读模式
本帖最后由 2038 于 2009-7-29 19:40 编辑

他的列表 文左 圖文在中
這種要怎麼用呢
我研究他的模板 還是搞不清楚
能否教一下 css+html這種排列
http://www.hrwst.com/?action-category-catid-2


<div class="column">
<div class="news_left">
            <div class="news_dh">

</div>
<div class="news_t">
<!--xxxxxx-->
<div class="newsleft_01">
            
<li> </li>
               
                <div class="fenye">
<div class="pages"><div><strong>1</strong><a href="/?action-category-catid-2-page-2">2</a><a class="next" href="/?action-category-catid-2-page-2">xxxxx</a></div></div>                    </div>
</div>
            
            <!--xxxxx-->
                        
            <div class="newsleft_02">
                    <ul>
            
<li>  </li>

                </ul>
            </div>
            
            
</div>
</div><!--col1 end-->
回复

使用道具 举报

txd1110 发表于 2009-7-29 21:37:19 | 显示全部楼层
<div class="newsleft_01"> 左浮动 ,<div class="newsleft_02"> 右浮动,设置好 外面盒子的宽度,以及这两个 DIV 的宽度。
回复

使用道具 举报

 楼主| 2038 发表于 2009-7-30 12:34:58 | 显示全部楼层
完成http://romostars.com ,但有個地方一直用不好
就是最右旁的排行圖標
照下面這樣改  一直會走位
<div class="newsright">
                       <div class="m_right01">
                    <div class="h02_left"></div>
                <div class="h02_right"></div>
                <!----ffffffff------>                    <h2>最新推薦</h2>
                <ul>
<li><span class="box_r">   </span><a href="/?action-viewnews-itemid-164"> </a></li>
</ul>
            </div>
            <div class="clear"></div>
</div><!--col2 end-->
</div><!--column end-->
<div class="clear"></div>

css

.newsright{float:right; width:260px;}
.m_right{float:right; width:262px; overflow:hidden}
.m_right01{float:right; position:relative; width:250px; height:250px;padding:5px; padding-top:1px; border:#b2bdc5 solid 1px; border-top:none; background:url(../images/h_bg.gif) repeat-x}
.m_right01 h2{text-align:left; line-height:25px; padding-left:15px; color:#fff}
.m_right01 ul{background:url(../images/number.gif) no-repeat 5px 8px; height:220px;padding-top:5px}
.m_right01 li{padding-left:25px; line-height:22px; height:22px; text-align:left}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-12 09:04 , Processed in 0.118578 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表