+ -
当前位置:首页 → 问答吧 → 大家好,有谁知道,怎样用css让两个超链在div中平均分配啊

大家好,有谁知道,怎样用css让两个超链在div中平均分配啊

时间:2011-08-10

来源:互联网

一个cms生成的页面代码中的一个模块的代码如下
HTML code

<div class="moduletable_tztg">
            <h3><a href='/joomla/index.php?option=com_content&amp;view=category&amp;id=38:2010-07-07-08-58-20&amp;Itemid=28'> 通知通告</h3>
          <!-- START 'Display News by BK 1.6.6' -->
           <table class='_tztg '>
               <tr>
                   <td width="50%" valign="top" class="" >
                       <div class='_tztg ' >
                           <div style='margin-bottom:4px;margin-left:6%'>
                            <span class='latestnews_tztg '>
                                   <a href='/joomla/index.php?option=com_content&amp;view=article&amp;id=3292:oa&amp;catid=38:2010-07-07-08-58-20&amp;Itemid=28' class='_tztg ' title=" 关于网讯改版、OA系统整合的通知">
                                       关于网讯改版、OA系统整合...
                                   </a>
                               </span>
                           </div>
                           <br/>
                           <span class="article_separator"> </span>
                       </div>
                   </td>
                   <td width="50%" valign="top" class="column_separator" >
                     <div class='_tztg ' >
                         <div style='margin-bottom:4px;margin-left:6%'>
                            <span class='latestnews_tztg '>
                               <a href='/joomla/index.php?option=com_content&amp;view=article&amp;id=3261:2011-07-31-19-50-19&amp;catid=38:2010-07-07-08-58-20&amp;Itemid=28' class='_tztg ' title="关于网讯改版、OA系统整合的通知"> 
                                   关于网讯改版、OA系统整合... 
                               </a>
                            </span>
                           </div>
                           <br/>
                           <span class="article_separator"> </span>
                       </div> 
                   </td>
               </tr>
           </table>
         
        <!-- END 'Display News by BK 1.6.6' -->
         </div >


可是,这其中的两个超链并不是平均分布在div中的,而是紧连在一起,如何用css让他们平均分开啊,代码如上

作者: cn_a381   发布时间: 2011-08-10

table 设宽度

作者: ddcatlee   发布时间: 2011-08-10

<table class='_tztg ' style="width:100%">

作者: net_lover   发布时间: 2011-08-10

用百分比就行了~·

外面给width:100%;
里面两个各给width:50%

作者: MuBeiBei   发布时间: 2011-08-10

热门下载

更多