手机
当前位置:查字典教程网 >网页设计 > 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实现连续的英文或数字自动换行的方法

纯CSS3实现带动画效果导航菜单无需js

css实现文字的自动隐藏

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

如何在网页中插入CSS

CSS 3实现DIV圆角效果完整代码

实现div垂直居中的display:table-cell方法示例介绍

css基础教程之CSS基础语法

通过浮动+定位实现两个div在同一行

精品推荐
分类导航