JS automatically generated elements and page original elements occurred stacking solution _javascript Tips
Source: Internet
Author: User
Commodity attributes and product specifications are JS dynamically generated elements, product extension information of the two text box is the original elements, they happen to stack, I thought is the element I generated is not fixed div size caused, because the following check box for the product specification is the second Ajax generated, I wonder if the second Ajax is not going to push the original elements of the page down to the right place.
For a couple of hours, try to fix the size of the container div that contains the element, but not fixed ah, the number of elements is uncertain, to try to change the attributes and specifications of the generation order, the attribute part of the heap to the specification part of the element, the specification part of how not independent occupy position, then thought will not be floating, remove floating, Add Clear:both to the original element (product extension Information section); It's normal enough.
Don't panic, don't be afraid of trouble, take care of it slowly.
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.