开发者

Mozilla firefox vs Internet Explorer - html

I have a problem because I am using a Dropdown box on a page and this is only appearing correctly in Mozilla Firefox.

The code is as follows:

开发者_如何学编程    <label for="liste">Add to list (choose list) : </label>
    <select  name="liste" id="liste" action="">

    <option value="OKK" id="Option1">Hello</option>
</select>

Any idea of what I am doing wrong please?

C

I'm using IE 7 and IE 8 and both are appearing wrong. The code previous to this displays a popup and this is displaying correctly for each browser and version but IE wont display the dropdown


Remove the action from your select element. This should go in your form tag.

<label for="liste">Add to list (choose list) :</label>
<select name="liste" id="liste">
  <option value="OKK">Hello</option>
</select>

I would also check if your html is w3c valid.


action is not html select property. I not see the close tag for select, the code should be like this

<label for="liste">Add to list (choose list) :</label>
<select name="liste" id="liste">
  <option value="OKK">Hello</option>
</select>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜