How do I make an area unclickable with CSS?

后端 未结 7 1308
轻奢々
轻奢々 2020-12-01 05:10

Let\'s say if I have wrapper div which includes some links and images, is there any way I can deactivate it at once with CSS only?


After review of answers:

7条回答
  •  不思量自难忘°
    2020-12-01 06:12

    if you are going to use jQuery, you can easily accomplish this with the blockUI plugin. ...or to answer your question with CSS, you'll have to absolutely position the div over the content you wish to block. just make sure the absolutely positioned div comes after the content to be blocked for z-indexing purposes.

    
    

    sorry for all the inline css. you'll have to make some nice classes. Also, this has only been tested in firefox and IE7.

提交回复
热议问题