手机
当前位置:查字典教程网 >网页设计 > 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 3实现DIV圆角效果完整代码

下拉菜单select样式设置(兼容IE6/IE7/IE8/火狐)

css基础教程之CSS基础语法

纯css实现的tab切换效果

div中内容上下居中小结

用CSS实现段落前面缩进两个字

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

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

css实现连续的英文或数字自动换行的方法

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

精品推荐
分类导航