展会信息港展会大全

ie下用 iframe 盖住select 方法
来源:互联网   发布日期:2016-03-25 16:16:34   浏览:2030次  

导读:以下是一个测试的静态html,为bug重现及及解决方法。view sourceprint?01 <!doctype html>02 <html>03 <head>04 <met...

以下是一个测试的静态html,为bug重现及及解决方法。

view sourceprint?01 <!doctype html>

02 <html>

03 <head>

04 <meta charset="utf-8">

05 <title>insert title here</title>

06<style type="text/css教程">

07#d1,#d2 {

08width:400px;

09height : 400px;

10}

11#d1 {

12position : absolute;

13top : 100px;

14background : red;

15z-index : 1;

16}

17#d2 {

18position : absolute;

19top : 150px;

20background : blue;

21z-index : 2;

22}

23</style>

24 </head>

25 <body>

26<div id="d1">

27<form>

28<input type="text" name="username"/>

29</form>

30<p>中</p>

31<form>

32<iframe style="z-index:1"><!-- 用iframe 解决此bug -->

33<select name="country">

34<option value="1">china</option>

35<option value="2">japanese</option>

36<option value="1">u.s.a</option>

37</select>

38</iframe>

39</form>

40</div>

41<div id="d2">ddd</div>

42 </body>

43 </html>

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港