Use the DIV method in ASP!

Source: Internet
Author: User

Two days ago, the customer needed to add a drop-down menu. I was dizzy. A very simple problem caused me two or three days. Then I realized that I really wanted to beat myself.

Previously, I used the DIV set Div method. I only needed to control their positions, but this time I didn't. I used the table-based Div and thought about it for a long time, I have forgotten that what Div displays is relative to the browser. No wonder the content in the drop-down menu does not correspond to the corresponding main menu, but is not fixed and runs around, the attributes 'margin-left' are also used. Later, we realized that we should place the data in the table column so that it is displayed in the corresponding column and the margin attribute in the adjusted format. The problem can be solved.

From this point, we can see that the adjustment of the display level is flexible, not fixed, but can be considered from multiple perspectives, rather than being a tough nut to crack. I also encountered this problem during this process. I know that this is not a problem at all. I just want to tell myself that sometimes it is not always a layer-7 thing, it is a living thing, and it is not just about doing it, but there are no other solutions. Ask your colleagues, friends, and mentors About Baidu and Google.

The problem is not big or small, but inspired and learned in the process of doing so.

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.