除特定元素外,如何使整个页面变暗 [英] How to darken the entire page except the specific elements
本文介绍了除特定元素外,如何使整个页面变暗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
你知道它是怎样的 页面,当SearchTextBox.focus()使页面的其余部分变暗时?
我尝试了什么:
我试图得到结果。但这不是一件好事
我想知道这个设计是否有标准的解决方案?
hi guys
Do you know how it looks like a page, when the SearchTextBox.focus() darkens the rest of the page?
What I have tried:
I tried to get the result. But it was not a good thing
I want to know if there is a standard solution for this design?
推荐答案
你放了一个半整个页面上的透明div,然后你把控件放在上面。它被称为洗涤。
You put a semi transparent div over the whole page, and then you put your controls on top of that. It's called a wash.
这篇关于除特定元素外,如何使整个页面变暗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文