(编辑:jimmy 日期: 2024/12/26 浏览:2)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>div在下拉菜单之上</title> <style type="text/css"> div{ position:absolute;top:100px;left:100px; z-index:2;height:200px; width:200px; background:#f0c} iframe{ position:absolute;top:0;left:0; z-index:1; background:#cf0} select{width:100%} </style> </head> <body> <div></div> <iframe>1212</iframe> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> <select><option></option></select> </body> </html> 提示:您可以先修改部分代码再运行