开发者

Actionscript 3 and nested lists

I have the following code in my XML (EDIT:) which I am trying to show in a RichText using htmlText.

<ul>
<li>List Item 1
   <ul>
      <li>List Item 2</li>
   </ul>
</li>
</ul>

Unfortunately, Flash doesn't seem to support nested lists, and I am getting output which looks like this:

  • List item 1
  • List item 2

Where I want the second ul to be indented further.

Any 开发者_如何学运维ideas would be much appreciated!

Cheers


have you tried:

<ul>
   <li>List Item 1
      <ul>
         <li>List Item 2</li>
      </ul>
   </li>
</ul>

As far as I know, nested UL's should be within LI-tags


I usually "debug" my output by using special CSS for that kinda stuff.

What if you add a class/style to some of the items, eg. make

ul {border:solid 1px #f00;} 

to build a nice red border around each UL group and see if you get one or two red rectangles. Then we know if it detects/renders UL no. 2.

If it does, then I would make another CSS test to see if I could get a green one inside the red one:

ul li ul {border:solid 1px #0f0;} 

If that works, then you could try to add some margin-left:20px to the second test.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜