opacity

Modify alpha opacity of LESS variable

本小妞迷上赌 提交于 2019-12-02 14:59:06
Using LESS, I know that I can change the saturation or tint of a color variable. That looks like this: background: lighten(@blue, 20%); I want to change the alpha opacity of my color, though. Preferably like this: background: alpha(@blue, 20%); Is there a simple way to do this in LESS? The site documentation gives the answer: background: fade(@blue, 20%); The function name is fade not alpha according to that document. For completeness fade Set the absolute transparency of a color. Can be applied to colors whether they already have an opacity value or not. background: fade(@blue, 20%); fadein

how to give opacity on area map

冷暖自知 提交于 2019-12-02 12:26:46
问题 i am having a problem with html opacity .. currently i have applied opacity using css but its not working my html and css code is below.. <area shape ="rect" class="transbox" coords ="0,0,30,22" href ="test1.htm" target ="_blank" opacity="0.5" /> area{ opacity: 0.6; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; filter: alpha(opacity=60); -moz-opacity: 0.60; -khtml-opacity: 0.6; } any one have idea about it? Thanks in advance 回答1: I don't think you can change opacity per

How can I fade out or fade in by command JPanel, its components and its color

南笙酒味 提交于 2019-12-02 08:56:08
I wanted to make a Glass Panel that contain a JPanel with white background, border and the msg "please wait". Here is the code example: JLabel glassLabel = new JLabel("Please wait"); FadingPanel msg = new FadingPanel(); glassLabel.setFont(new Font("Dialog", Font.BOLD, 26)); msg.setLayout(new BorderLayout()); msg.add(glassLabel,BorderLayout.NORTH); msg.setBackground(Color.white); msg.setFont(UIManager.getFont("Table.font").deriveFont(24f)); msg.setBorder(new CompoundBorder(new TitledBorder(""), new EmptyBorder(20,20,20,20))); It will fade in and out while waiting for the query. the problem is

IMG hover not working

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 08:48:38
I have problem with my hover on img in my #picutre div. HTML: <div id="picture"> <img class="content_pic" src="image/exemple.jpg" alt="exemple"/> <img class="content_pic" src="image/exemple.jpg" alt="exemple"/> </div> And my CSS looks like this: #picture { text-align:center; } #picture img { width:40%; height:40%; border:1px solid #000000; display:inline-block; margin-left:0; margin-right:0; opacity:0.4; } .content_pic:hover{ opacity:1.0; } So i'm wondering why it doesn't work. I'm using Google Chrome, checked IE10 too but not working there too. #picture img is more specific than .content_pic

Changing opacity of a Grid creating a “fade in” effect?

家住魔仙堡 提交于 2019-12-02 08:41:38
I'm having some issues on creating a fade in effect of a grid. I want a grid coming out after a click, is this possible? Thanks! You can use a Storyboard and animate the Opacity property to produce a Fade In effect, the following thread covers the code required :- http://social.msdn.microsoft.com/Forums/is/windowsphone7series/thread/a8e05145-364d-412c-8fb5-faf65e80344e A tad too late to the party, as I just wrote pretty much the same as Hermit Dave, but maybe it helps to contribute to an even better understanding: Another way is, setting your Storyboard items in XAML view, which, in my opinion

how to give opacity on area map

◇◆丶佛笑我妖孽 提交于 2019-12-02 07:02:01
i am having a problem with html opacity .. currently i have applied opacity using css but its not working my html and css code is below.. <area shape ="rect" class="transbox" coords ="0,0,30,22" href ="test1.htm" target ="_blank" opacity="0.5" /> area{ opacity: 0.6; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; filter: alpha(opacity=60); -moz-opacity: 0.60; -khtml-opacity: 0.6; } any one have idea about it? Thanks in advance I don't think you can change opacity per area element. However, you could still achieve an effect with mapper.js . 来源: https://stackoverflow.com

Splash-screen with alpha channels transparency/opacity in WinForms

孤人 提交于 2019-12-02 04:12:27
问题 How to implement a splash-screen using an image with alpha channels transparency/opacity in WinForms? 回答1: Take a look at Per Pixel Alpha Blend in C# 回答2: Depends on what kind of shape your image is. Is it something you can draw using code? If so you could set the forms draw region to a shape, like this: yourForm.Region = new Region(someShape); The shape can for example be a polygon with the same shape as your image. 来源: https://stackoverflow.com/questions/851738/splash-screen-with-alpha

Splash-screen with alpha channels transparency/opacity in WinForms

十年热恋 提交于 2019-12-02 01:51:28
How to implement a splash-screen using an image with alpha channels transparency/opacity in WinForms? Take a look at Per Pixel Alpha Blend in C# Depends on what kind of shape your image is. Is it something you can draw using code? If so you could set the forms draw region to a shape, like this: yourForm.Region = new Region(someShape); The shape can for example be a polygon with the same shape as your image. 来源: https://stackoverflow.com/questions/851738/splash-screen-with-alpha-channels-transparency-opacity-in-winforms

Weird border opacity behavior in Webkit?

淺唱寂寞╮ 提交于 2019-12-02 00:19:44
问题 I've been testing with borders with opacity and Webkit seems to be having a weird behavior. Here's my code <style> div{ position: relative; width: 300px; height: 300px; background: #00f; } span{ position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 10px solid rgba(255, 255, 255, 0.5); } </style> <div> <span></span> </div> You can test it here. In Firefox you'll get as expected: a 10px white inner border with 50% opacity around the div, however, at least Chrome (but I suspect

IE jQuery Opacity Anti-Aliasing Issue

女生的网名这么多〃 提交于 2019-12-01 23:35:09
问题 I am using jQuery to fade in and out a .png images of links on the home page of http://www.logandwight.com In IE7 and IE8 the text have no anti-aliasing and are all boxy. I've tried messing with the opacity settings and then I tried animating the filter property specifically for IE but nothing seems to work. Does anyone know whats wrong? 回答1: This is an inherent problem with IE, transparency, and opacity. Unfortunately there's no good work around while animating...in this situation I just