opacity

What has bigger priority: opacity or z-index in browsers?

人盡茶涼 提交于 2019-11-26 04:24:36
问题 I\'m coding a \"popup window\" in JavaScript and I\'ve come across an interesting thing: The navy square under the popup window is visible even though I would expect it to be hidden. The popup was added after the square, so it should be on the top. CSS opacity property of the navy square is 0.3 . From what I\'ve tried, it seems that every number from the interval (0,1) would yield the same result. If I change it to 1 , then it behaves as expected (i.e. the part of the square under the popup

CSS Background Opacity [duplicate]

此生再无相见时 提交于 2019-11-26 04:02:39
问题 This question already has an answer here: How do I give text or an image a transparent background using CSS? 28 answers I am using something similar to the following code: <div style=\"opacity:0.4; background-image:url(...);\"> <div style=\"opacity:1.0;\"> Text </div> </div> I expected this to make the background have an opacity of 0.4 and the text to have 100% opacity. Instead they both have an opacity of 0.4. 回答1: Children inherit opacity. It'd be weird and inconvenient if they didn't. You

How to Set Opacity (Alpha) for View in Android

余生长醉 提交于 2019-11-26 03:24:57
问题 I have a button as in the following: <Button android:text=\"Submit\" android:id=\"@+id/Button01\" android:layout_width=\"fill_parent\" android:layout_height=\"wrap_content\"> </Button> In my onCreate() event, I am calling Button01 like this: setContentView(R.layout.main); View Button01 = this.findViewById(R.id.Button01); Button01.setOnClickListener(this); There is a background in the application, and I want to set an opacity on this submit button. How can I set an opacity for this view? Is it

Opacity CSS not working in IE8

五迷三道 提交于 2019-11-26 03:19:15
问题 I\'m using CSS to indicate the trigger text for a jQuery slide-down section: i.e. when you hover over the trigger text the cursor changes to a pointer and the opacity of the trigger text is reduced to indicate that the text has a click action. This works fine in Firefox and Chrome, but in IE8 the opacity doesn\'t change. I\'ve tried a variety of CSS settings without any success. For example HTML: <h3 class=\"slidedownTrigger\">This is the trigger text</h3> CSS: .slidedownTrigger { cursor:

How to Set Opacity (Alpha) for View in Android

孤者浪人 提交于 2019-11-26 02:42:54
I have a button as in the following: <Button android:text="Submit" android:id="@+id/Button01" android:layout_width="fill_parent" android:layout_height="wrap_content"> </Button> In my onCreate() event, I am calling Button01 like this: setContentView(R.layout.main); View Button01 = this.findViewById(R.id.Button01); Button01.setOnClickListener(this); There is a background in the application, and I want to set an opacity on this submit button. How can I set an opacity for this view? Is it something that I can set on the java side, or can I set in the main.xml file? On the java side I tried

How to set opacity in parent div and not affect in child div? [duplicate]

巧了我就是萌 提交于 2019-11-26 01:59:19
问题 This question already has an answer here: I do not want to inherit the child opacity from the parent in CSS 14 answers Hey i am searching in google but i can\'t fine any perfect answer I want to Opacity in parent DIV but not Child DIV Example HTML <div class=\"parent\"> <div class=\"child\"> Hello I am child </div> </div> Css .parent{ background:url(\'../images/madu.jpg\') no-repeat 0 0; } .child{ Color:black; } Note: -- I want to background-image in Parent Div not Color 回答1: May be it's good

How can I set the opacity or transparency of a Panel in WinForms?

試著忘記壹切 提交于 2019-11-26 01:50:00
问题 I was wondering how to change or modify the transparency of a Panel in C#, not the whole form, but the panel only.. I\'ve seen many C# tutorials on Opacity, but its for the Form. im looking for how it could be possible with the Panel only. Thank You! 回答1: Yes, opacity can only work on top-level windows. It uses a hardware feature of the video adapter, that doesn't support child windows, like Panel. The only top-level Control derived class in Winforms is Form. Several of the 'pure' Winform

Is there any way to hover over one element and affect a different element? [duplicate]

流过昼夜 提交于 2019-11-26 01:39:59
问题 This question already has answers here : How to affect other elements when one element is hovered (6 answers) Closed 5 years ago . I want it to be as simple as this, but I know it isn\'t: img { opacity: 0.4; filter: alpha(opacity=40); } img:hover { #thisElement { opacity: 0.3; filter: alpha(opacity=30); } opacity:1; filter:alpha(opacity=100); } So when you hover over img, it changes the opacity of #thisElement to 30% and changes the opacity of the image to 100%. Is there a way to actually do

Opacity of background-color, but not the text [duplicate]

不打扰是莪最后的温柔 提交于 2019-11-26 00:08:21
问题 This question already has answers here : How do I give text or an image a transparent background using CSS? (28 answers) Closed 5 years ago . How do I make the cross-browser (including Internet Explorer 6) transparency for the background of a div while the text remains opaque? I need to do it without using any library such as jQuery, etc. (But if you know of a library that does it I\'d love to know so I can look at their code). 回答1: Use rgba! .alpha60 { /* Fallback for web browsers that don't

Using CSS for a fade-in effect on page load

﹥>﹥吖頭↗ 提交于 2019-11-25 23:06:28
问题 Can CSS transitions be used to allow a text paragraph to fade-in on page load? I really like how it looked on http://dotmailapp.com/ and would love to use a similar effect using CSS. The domain has since been purchased and no longer has the effect mentioned. An archived copy can be viewed on the Wayback Machine. Illustration Having this markup: <div id=\"test\"> <p>​This is a test</p> </div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ With the following CSS rule: #test p { opacity: