Problems encountered in carousel Images

Source: Internet
Author: User

Problems encountered in carousel Images

Today, I encountered several problems in the carousel diagram of my website. I asked the experts to ask me what the problem was:

1. Set a background image for the entire carousel image. The background image is under the moderator, but you can repeat it and save it again. Why ??

2. If a is not converted to a and no float is added, set margin-left for a, which does not take effect. Because a is a row element without margin, there will be margin after the float is set.

3. If ul has a fixed width, set the li of three rows and four columns. Each li has an upper border and a right border, and the fourth of each line will be squeezed down, in this case, ul's width is richer, and li can be fully displayed. Then, ul's parent element overflow: hidden; is used to remove ul's redundant hidden, the extra part of ul is the border of li in it. Because the last one does not have the right border, let it go out and hide it.

The reason for setting overflow: hidden at the beginning is that overflow: hidden; added to ul should be added to ul's parent element.

4 ,. con_lunbo. w. life_list. life_bottom ul li: nth-child (2) a I {/* does not take effect --- li contains a, it should be a in the second li, rather than the second */
Width: 20px;
Height: 20px;
Background-position:-2px-45px;
Margin-top: 17px;
Margin-left: 13px;

}

------ An error element is found when the nth-child () selector is added.

5. con_lunbo. w. life_list. life_bottom ul li a p {/* invalid */
Font-size: 11px "";/* span is set at the beginning, span is a row element, text-align: center; does not work */
Color: #666;
Text-align: center;
}

6. I still have two questions that I don't quite understand:

1) When can I clear the float?

2) can an element be added with absolute positioning while floating?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.