手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >css实现div在下拉菜单之上
css实现div在下拉菜单之上
摘要:div在下拉菜单之上div{position:absolute;top:100px;left:100px;z-index:2;height:...

<!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>

提示:您可以先修改部分代码再运行

【css实现div在下拉菜单之上】相关文章:

用css实现十字的布局示例代码

css让容器水平垂直居中的7种方式

css实现鼠标滑过改变文字(中文变英文)

纯css实现的tab切换效果

css布局中的居中问题

用css实现隐藏文本框

CSS3实现的炫酷菜单代码分享

css实现图片在div中居中的效果

纯css实现的下拉菜单只有边框底纹用到图片

css实现li中文本超出行宽自动隐藏

精品推荐
分类导航