English 中文(简体)
使HTML中的元素高于其他元素
原标题:make elements above other in HTML
  • 时间:2011-02-13 15:20:51
  •  标签:
  • html
  • css

我使用一个自定义控件(具体来说是jQuery循环插件),我的网页上也有一个下拉菜单。自定义控件似乎在下拉菜单上方,这根本不适合我。如何使我的下拉菜单高于一切?

最佳回答

您可以使用z-index属性。更多信息,请访问http://www.w3.org/TR/CSS2/visuren.html#z-索引

请记住,z-index仅适用于已定位的元素。

一篇关于z-index的好的“如何使用”文章,您可以找到此处

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签