Home >Web Front-end >HTML Tutorial >Solution to the problem that the content of the select drop-down box in HTML is not fully displayed and partially covered_HTML/Xhtml_Web page production

Solution to the problem that the content of the select drop-down box in HTML is not fully displayed and partially covered_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:38:161916browse

Today, I encountered such a problem: the content in the drop-down box in the query column was too long, causing part of it to be covered.

I looked up some information, some said to use function control, some said to use event control, some couldn't understand, and some were too complicated to implement. Later, I asked my colleague if there was any simple method. He told me to add the title attribute to the option, so I tried his method and finally found that this method worked. In this way, I want to record it to prevent myself from forgetting.

1. The specific examples are as follows

Copy the code
The code is as follows:





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













Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn