Why is the dropdown box of SELECT tag shown at wrong place?

Deadly 提交于 2019-12-06 13:37:35

问题


My CSS file doesn't touch the tag 'select' at all, also no CSS classes are related to the tag 'select'. But when showing in browser, the dropdown box which contains values are shown at the wrong place, as in the screenshot below:

Why is it so? Or is it a bug of Chrome? 'cause as I know we can't change this kind of dropdown box position neither by CSS nor JS. I want it back to the normal place just right below the SELECT element!!!

This is the portion of the HTML for the above mentioned 'select' tag:

<select id="sel_user">   
  <option value="39" >Bùi Ngọc Sơn &lt;son.bui@tamtay.vn&gt;</option>   
  <option value="19" >Cao Thanh Hải &lt;hai.cao@tamtay.vn&gt;</option>   
  <option value="15" >Cao Thanh Thảo &lt;thao.cao@tamtay.vn&gt;</option>   
  <option value="72" >Cao Thị Lan Anh &lt;anh.cao@tamtay.vn&gt;</option>    
  ...
</select>

The id of the select tag is just for JS, it is not linked with any CSS item.


回答1:


I don,t get it...I tried your select list but it ran very well.

Is your select list working in other browsers?

I think there is some error in your HTML code.



来源:https://stackoverflow.com/questions/11337592/why-is-the-dropdown-box-of-select-tag-shown-at-wrong-place

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!