2012-05-15 53 views
1

我只是试图在ASP.NET aspx页面中添加项目列表。在HTML中创建项目符号列表

我有如下的代码aspx页面上......正如你所看到的,有没有在UL标签中使用类...

<ul type="circle"> 
         <li>Upon receipt and inspection of the returned merchandise, credit will be issued based 
          on purchase price. Merchandise not originally purchased from xyz will be 
          credited at the current lowest market price.</li> 
         <li>All returns are subject to a handling fee.</li> 
         <li>It is recommended to allow 14 business days for a credit to be processed. Please 
          note, merchandise returned at the end of the month may not be processed in time 
          to be reflected on the current month’s statement.</li> 
         <li>Merchandise that is deemed as unacceptable per manufacturer’s policy will not be 
          credited and will be returned at the customer’s expense.</li> 
        </ul> 

下面是输出。它没有提出任何要点。我究竟做错了什么?

aaaaaaaa 
bbbbbbbb 
cccccccc 
dddddddd 

回答

1

看起来你可能需要检查你的CSS

检查CSS是说

ul, li { display:inline; AND list-style:none; OR float:left; } 

标记为无序“子弹”列表(如果那是你问的是什么) ..

<ul> 
    <li>aaaaaaa</li> 
    <li>bbbbbbbbb</li> 
    <li>ccccc</li> 
    <li>dddddd</li> 
    <li>eeeeee</li> 
</ul> 
+0

没有与UL相关类...... – sagesky36

+0

你不需要一类 - 看到答案 - 这个CSS宣告影响所有UL的 - 检查你的CSS文件(找到“UL” O r'li') –

+0

通过查看css文件,我指出了正确的方向。我在abbengine.css文件中放置了另一个类,并使用该列表中的特定类来强制要点 – sagesky36

7

听起来像你使用某种CSS重置。评论出来,然后再试一次,它应该可以工作。

相关问题