Solution to overwrite the entire content in the select drop-down box in HTML _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
The content in the select drop-down box in HTML is too long, so some of the content is overwritten. I tried various methods without a clue. Finally, I added the title attribute to the option. I found the problem solved. Today, I encountered a problem: the content in the drop-down box in the query bar is too long, and some of the content is overwritten.

I have queried some materials, some of which use function control, some of which use Event Control, some do not understand, and some are too complicated to implement. Later, I asked my colleague if there were some simple methods. He told me to add the title attribute in option. So I tried his methods and finally found that this method was feasible. In this way, I want to record it and avoid forgetting it.

1. The specific instance is as follows:

The Code is as follows:






Solution to incomplete display of select drop-down box in HTML




Letter:
All Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC Dddddddddddddddddddddddddddddddddddddd Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG Hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii





2. instance results



3. Dynamic Data

The Code is as follows:



Province:
All $ {Area. areaName}

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.