sea life jewelry wholesale Ask how to use HTML LI tags to make product display. For example, JD.com's product display is a li tag, 4 displayed in a row, and many rows of cycles?

sea life jewelry wholesale Ask how to use HTML LI tags to display product display. For example, JD.com's product display is a li tag, 4 displayed in a row, and then displaying four in four and many rows. They should set him with CSS attributes. Intersection

5 thoughts on “sea life jewelry wholesale Ask how to use HTML LI tags to make product display. For example, JD.com's product display is a li tag, 4 displayed in a row, and many rows of cycles?”

  1. wholesale jewelry youngstrading You first use a div to pack the content, set the width height, and then put a UL in the div. Put 4 li in UL.
    u003Cli>
    u003Cimg src = "IMG/Coffee.png" alt = "/>
    u003Cp> This is a cup of coffee u003C/p>
    u003Cp> /34: 00 u003C/p>
    u003C/li>
    u003Cli>
    u003Cimg src = "img/coffee.png" alt = ""/>
    u003Cp > This is a cup of coffee u003C/p>
    u003Cp> ¥ 34: 00 u003C/p>
    u003C/li>
    u003Cli>
    u003CIMG SRC = "IMG// coffee.png "alt =" "/>
    u003Cp> This is a cup of coffee u003C/p>
    u003Cp> ¥ 34: 00 u003C/p>
    u003C/li>
    u003Cli>
    u003Cimg src = "IMG/Coffee.png" alt = ""/>
    u003Cp> This is a cup of coffee u003C/p>
    u003Cp> ¥ 34 : 00 u003C/p>
    u003C/li>
    u003Cli>
    u003Cimg src = "img/coffee.png" alt = "/>
    u003Cp> This Is a cup of coffee u003C/p>
    u003Cp> ¥ 34: 00 u003C/p>
    u003C/li>
    u003C/ul>
    CSS:
    ul { r {
    width: 100%;
    }
    li {
    list-style: none;
    width: 20%;
    height: 300px;
    border: 1px solid #000;
    float: left;
    }
    I can see the effect of the change of the bank. If you think the style can be set in JS Comment all the LI, and then write a cycle in JS
    var list = [
    {img: img/coffee.png, title: This is a cup of coffee, price: 34},
    {img : img/coffee.png, title: This is a cup of coffee, price: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price: 34},
    {img nmg : IMG/Coffee.png, Title: This is a cup of coffee, price: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price: 3 4},
    {img: img/coffee.png, title: This is a cup of coffee, price: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price:: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price:: 34},
    {img: img/coffee.png, title: This is a cup of coffee, price: 34}
    ]; The content of the stitching
    FOR (var I of list) {
    // Stitching content
    html = `
    u003Cli>
    u003CIMG SRC =" $ {i.img}} "Alt =" "/>
    u003Cp> $ {i.title} u003C/p>
    u003Cpan> {{i.price} u003C/span>: 00 u003C/p >
    u003C/li>
    `;
    $ ("ul") (html); // Add the content of traversing to ul In this way, I don’t know if you can’t understand it

  2. top wholesale costume jewelry websites u003CStyle type = "text/css">
    ul, li {margin: 0px; padding: 0px;}
    ul {width: 100px;: pink; float: left;} n. Content {margin-heft: 20px;}
    u003C/style>
    u003Cul>
    u003Cli> This first Li u003C/li>
    u003Cli> This second One Li u003C/li>
    u003Cli> The third Li u003C/li>
    u003Cli> This fourth Li u003C/li>
    u003Cli> This fifth Li> u003C/li>
    u003Cli> The sixth Li u003C/li>
    u003Cli> The seventh Li u003C/li>
    u003Cli> the eighth li u003C/ li>
    u003Cli> The ninth Li u003C/li>
    u003Cli> The tenth Li u003C/li>
    u003C/ul>
    u003Cul class = "Content">
    u003Cli> The first Li u003C/li>
    u003Cli> This second Li u003C/li>
    u003Cli> This third Li u003C/ li>
    u003Cli> The fourth li u003C/li>
    u003Cli> The fifth Li u003C/li>
    u003Cli> This sixth li u003C/li>
    u003Cli> The seventh Li u003C/li>
    u003Cli> The eighth Li u003C/li>
    u003Cli> this ninth Li u003C/li>
    u003Cli> The tenth Li u003C/li>
    u003C/ul>
    u003Cul class = "content">
    u003Cli> the first Li u003C/li>
    u003Cli> The second Li u003C/li>
    u003Cli> This third Li u003C/li>
    u003Cli> The fourth Li u003C/li>
    u003Cli> The fifth Li u003C/li>
    u003Cli> The sixth Li u003C/li>
    u003Cli> this seventh Li u003C/li>
    u003Cli> The eighth li u003C/li>
    u003Cli> The ninth Li u003C/li>
    u003Cli> the tenth Li u003C/li>
    u003C/ ul>
    u003Cul class = "content">
    u003Cli> This first Li u003C/li>
    u003Cli> This second Li u003C/li>
    u003Cli> The third Li u003C/li>
    u003Cli> The fourth li u003C/li>
    u003Cli> The fifth Li u003C/li>
    u003Cli> The sixth Li u003C/li>
    u003Cli> this seventh Li u003C/li>
    u003Cli> The eighth li u003C/li>
    u003Cli> The ninth Li u003C/li>
    u003Cli> the tenth Li u003C/li>
    u003C/ UL>

  3. wholesale hiphop jewelry Set the width of li. If the entire width of the product is 600px, then the li sets 145px, and then set the up, down, left and right spacing, the browser will automatically display 4 li {width: 145px; margin: 5px; float: left;}.

Leave a Comment