蓝色魔法

蓝色的魔法,永恒的世界.

用CSS控制各个组件在页面上的层次.

二月23

现在大家网页越来越丰富, ajax调用,iframe,div提示,div确认等等. 那么多东西在一个页面上难免有”争宠”的时候, 经常有弹出的div确认框被一个下拉菜单挡住的事情发生.  为了让他们分清层次CSS中有个z-index的属性. 用法很简单,给必要的div层加入z-index的css属性例如z-index:10,而z-index后的数字越大说明他的层次越高,那么重要的信息就不会被挡住拉.

posted under CSS, HTML

Email will not be published

Website example

Your Comment:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word