English 中文(简体)
侧重于超文本部分的问题
原标题:Problem with focus transfer on HTML select elements

我由几行组成,与以下几行相似:

<div style="display: table-row">
     <div style="display: table-cell">
          <label for="Region">Region</label>
     </div>
      <div style="display: table-cell">
           <select  id="Region" name="Region">
               <option value="">Please Select</option>
               <option value="AL">Alabama</option>
               <option value="AK">Alaska</option>
               <option value="AS">American Samoa</option>
           </select>
      </div>
</div>

我有一次HoverOut活动,当用户将其 mo曲线从外移时,火灾最多的是把重点移出的输入现场。 我感到有些困惑的是,当一行的着眼点,我去掉,如果 mo不 over。 我的问题是选择性发言和IE7/8。

If FF5, if I m using the mouse to select an entry from the select drop down, everything works as expected. However, with IE7/8, what happens is that the outer row receives the mouseout event (firing hover-out) as soon as the mouse cursor leaves the area of the div tag, while I m attempt to select an entry from the drop down. If I leave the mouse over the div and use the cursor keys to navigate the list, it works fine.

我的问题是,在我仍在从选定名单中选择价值的同时,防止将模拟活动传入外部。

可在

问题回答

你们可以这样做。

event.stopPropagation();

这将阻止事件传播。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签