Home > Web Front-end > HTML Tutorial > Please help me write a nesting problem between lists_html/css_WEB-ITnose

Please help me write a nesting problem between lists_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:13:10
Original
1134 people have browsed it

[img=http://b308.photo.store.qq.com/psb?/2a2c138b-2138-4b25-88ba-2e534a7d1b9d/q2X9ID5uXEbQrmmF47UhgMVmcK*H7WdJNnpTLEPrFto!/b/YWLGn7fxGAAAYmIkmLcbGQAA][/img]

最好是列表与列表的嵌套的,因为要后台传入数据。。


 

      

  •    

           
    • 品牌女装

    •      

    •      

    •       

               
      • 太虚

      •        
      • |

      •        
      • 太虚

      •        
      • 太虚

      •        
      • |

      •        
      • 太虚

      •       

           

    •    

      

  •   

  •   

  •   

  •   

  •   

  •  


Reply to discussion (solution)

Okay, I admit that my Chinese language skills are not good

Okay, I admit that I The philology is not good
Ignore my code below. . Can you write an exact layout for me?

Quote from the 1st floor’s reply:

Okay, I admit that my philology is not good

Ignore my code below. . Can you write an exact layout for me?


The key is that I can’t see your pictures either

Quote from 2nd floor’s reply:

Quote from 1st floor’s reply:

Okay I admit that my philology is not good

Ignore my code below. . Can you write an exact layout for me?



The key is that I can’t see your picture either
Just like the footer of Taobao Mall...

Quote from 3rd Floor’s reply:
Quoted from the 2nd floor’s reply:

Quoted from the 1st floor’s reply:

Okay, I admit that my philology is not good

Ignore my code below. . Can you write an exact layout for me?



The key is that I can’t see your pictures either

Just like the footer of Taobao Mall...



Since you already have the code, why do you still need to write it? ? ?

<style>#category{ font-size:12px;}#category label{ font-weight:bold; height:30px; line-height:30px;}#category ul{ list-style-type:none;}#category > ul,#category li ul{ margin:0; padding:0px;  width:auto; overflow:hidden;}#category > ul > li{ float:left; width:21%; border:solid 1px #ccc; padding:1%; margin:1%;}li li{ float:left; margin:5px 3px; padding:0 5px;border-left:solid 1px #ccc;}li li:first-child{ border-left:none;}</style><div id="category">    <ul>        <li>             <label>品牌女装</label>             <img src="my image path" />            <ul>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>            </ul>        </li>        <li>             <label>时尚男装</label>             <img src="my image path" />            <ul>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>                <li>连衣裙</li>                <li>T?</li>                <li>衬衫</li>                <li>婚纱</li>            </ul>        </li>    </ul></div>
Copy after login

Quote from 4th Floor’s reply:

Quote from 3rd Floor’s reply:
Quote from 2nd Floor’s reply:

Quote from 1 Lou’s reply:

Okay, I admit that my Chinese language skills are not good

Ignore my code below. . Can you write an exact layout for me?



The key is that I can’t see your pictures either

Just like the footer of Taobao Mall...




Since you already have the code, why do you still need to write it? ? ?
No, I can’t handle the nesting problem of ul and ul well. . It will always be indented

HTML code