opacity

Button opacity/transparency

点点圈 提交于 2019-11-30 10:20:51
main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background" android:gravity="center" android:color="#66FF0000" > <Button android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/noua" android:textStyle="bold" android:textColor="#808080" /> <Button android:id="@+id/button2" android:layout_width="match_parent" android:layout

Opacity CSS that works for all browsers?

浪子不回头ぞ 提交于 2019-11-30 06:52:57
Can someone recommend the safest approach for giving an OPACITY VALUE to a DIV TAG using CSS? Erik Straight from Css-Tricks.com (this covers everything I can think of): .transparent_class { /* IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 5-7 */ filter: alpha(opacity=50); /* Netscape */ -moz-opacity: 0.5; /* Safari 1.x */ -khtml-opacity: 0.5; /* Good browsers */ opacity: 0.5; } This will work in every browser. div { -khtml-opacity:.50; -moz-opacity:.50; -ms-filter:”alpha(opacity=50)”; filter:alpha(opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha

Text shadow opacity

馋奶兔 提交于 2019-11-30 06:39:55
问题 Is it possible to adjust the opacity of just the text shadow, rather than the text itself as well? E.g I have purple text with a blue shadow. I'd like to make the blue shadow have an opacity without losing anything on the purple. h1.blue {text-shadow: 3px 3px 0px #3f6ba9;} 回答1: Yes, but specify color in rgba mode to add alpha transparency. h1.blue {text-shadow: 3px 3px 0px rgba(63,107,169, 0.5)} //half of transparency 来源: https://stackoverflow.com/questions/11549757/text-shadow-opacity

Transparent PNG animate problem on Internet Explorer

浪尽此生 提交于 2019-11-30 05:43:39
CSS Code: #btn{ background: url(transparent.png) no-repeat; filter: alpha(opacity=0); -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; } JavaScript/jQuery: $("#btn").animate({opacity:1,"margin-left":"-25px"}); I don't have any problem with the code above on Firefox, Chrome and others. But it does not work on any version of Internet Explorer. The problem is the PNG image is rendered strange, background of the transparent PNG looks black. When I remove opacity effect, there is no problem. What is the solution? There is currently no solution for this that I'm aware of. Just have to wait for IE to

Create non-transparent div on top of transparent parent element

江枫思渺然 提交于 2019-11-30 05:08:11
EDIT: Changed title to actually be correct I'm trying to simulate a modal popup in all HTML and CSS and am having a bit of bad luck with one single element of what I'm doing. I want the innermost div, the one with the content, to not be opaque like the border is, but no matter what I try with the CSS I cannot get it to work. Here's the code: The CSS .modalBackground { background-color:Gray; filter:alpha(opacity=70); opacity:0.7; } The HTML <table style="height: 100%; width: 100%; position: fixed; top: 0; left: 0;"><tr><td class="modalBackground"> <div style="display: table; height: 40px; width

How to maintain PNG alpha transparency when using “-ms-filter” property

点点圈 提交于 2019-11-30 04:05:40
I have the following HTML: <a><img src="myfile.png" /> Some text</a> And this css: a:hover { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)"; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=75); opacity: .75; } The problem with this occurs in both IE 8 and IE 7. When the PNG image is subject to the -ms-filter or filter , its alpha transparency is ruined. Try it out and you will see. It is a bug in both IE 8 and IE 7. Can I remove the "-ms-opacity" and "filter" properties applied in CSS? What is the syntax for this? (e.g. something like -ms-filter: ""; ) Does anyone

Is Opacity is INHERITED in a div

你。 提交于 2019-11-30 03:30:53
问题 Is it possible to remove the opacity inheritance from a parent to it's child div ? Example <style type="text/css"> .parent { opacity:.5; } .parent div { opacity:1; /* I want this to override the ".5", but instead it combines */ } </style> <div class="parent"><div></div></div> 回答1: Like fmsf says, it's not possible. If you're looking for a way to make background-color or color transparent, you could try rgba. This is not supported in IE6. #my_element { /* ie6 fallback - no opacity */

How to make Qt widgets fade in or fade out?

随声附和 提交于 2019-11-30 03:04:18
I am trying to fade in and fade out a QLabel or for that matter any QWidget subclass. I have tried with QGraphicsEffect , but unfortunately it works well only on Windows and not on Mac. The only other solution which can work on both Mac & Windows seems to be having my own custom paintEvent where I set the opacity of QPainter and also define a Q_PROPERTY for "opacity" in my derived QLabel and change the opacity through QPropertyAnimation . I am pasting below the relevant code snippet for your reference. I still see an issue here - reusing the QLabel::paintEvent doesn't seem to be working, it

css3 cross browser opacity

旧城冷巷雨未停 提交于 2019-11-30 02:53:39
问题 I cannot find a way to apply css cross borwser opacity! What is good in IE7, don't go in IE8! and viceversa... thank you d 回答1: opacity: 0.5; filter:alpha(opacity=50); try this 回答2: Here is a tutorial that makes it work in MSIE browsers, if you follow it correctly. http://www.quirksmode.org/css/opacity.html 来源: https://stackoverflow.com/questions/4386714/css3-cross-browser-opacity

Dynamic Opacity not changing when component rerenders in react native

∥☆過路亽.° 提交于 2019-11-30 01:47:38
问题 I'm starting to learn React Native, and for my project I created a simple Button component to reuse in my project. I set the opacity value dynamically according to the variable 'disabled', however, the look of the button is not changing with the value of the opacity variable. I searched around and I have not found an explanation.. Any help will be appreciated. Here is my source code: import React from 'react' import { View, Text, TouchableOpacity, StyleSheet } from 'react-native' import