opacity

Precise OpacityMask

核能气质少年 提交于 2021-02-06 02:37:45
问题 Suppose I need to set an opacity mask on a WPF control that highlights a portion of it in precise position (suppose a 50x50 square at (50;50) position). To do that I create a DrawingGroup containing 2 GeometryDrawing objects: 1 semi-transparent rectangle for the whole actual size of the control and 1 opaque rectangle for highlighted area. Then I create a DrawingBrush from this DrawingGroup, set it's Stretch property to None and set this brush as OpacityMask of the control that needs to be

html - CSS Opacity different than 1 or 0 not working in IE11

ぐ巨炮叔叔 提交于 2021-02-05 10:10:36
问题 I'm facing an issue with the css property opacity, with Internet Explorer 11. The code is very simple: <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <style> div{ width:100px; height: 100px; background: blue; } #d1{ opacity: 1; } #d2{ opacity: 0.7; } </style> </head> <body> <div id='d1'>df</div> <div id='d2'>trtret</div> </body> </html> On IE11, the opacity setting doesn't work for the second div. All others browsers are fine. I'm using Apache server through local uWamp

html - CSS Opacity different than 1 or 0 not working in IE11

拜拜、爱过 提交于 2021-02-05 10:06:56
问题 I'm facing an issue with the css property opacity, with Internet Explorer 11. The code is very simple: <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <style> div{ width:100px; height: 100px; background: blue; } #d1{ opacity: 1; } #d2{ opacity: 0.7; } </style> </head> <body> <div id='d1'>df</div> <div id='d2'>trtret</div> </body> </html> On IE11, the opacity setting doesn't work for the second div. All others browsers are fine. I'm using Apache server through local uWamp

html - CSS Opacity different than 1 or 0 not working in IE11

三世轮回 提交于 2021-02-05 10:06:08
问题 I'm facing an issue with the css property opacity, with Internet Explorer 11. The code is very simple: <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <style> div{ width:100px; height: 100px; background: blue; } #d1{ opacity: 1; } #d2{ opacity: 0.7; } </style> </head> <body> <div id='d1'>df</div> <div id='d2'>trtret</div> </body> </html> On IE11, the opacity setting doesn't work for the second div. All others browsers are fine. I'm using Apache server through local uWamp

CSS - change the style of another element when a link is hovered?

匆匆过客 提交于 2021-02-05 09:02:24
问题 How can I change the style of another element when a link is hovered - without jQuery/ JavaScript? ul>li>a:hover main { opacity: 0.1; } main p { font-size: 200px; } <header> <ul> <li><a href="#">Hover me</a></li> </ul> </header> <main> <p>Hello World!</p> </main> I want to change the opacity of the text in main when the link is hovered. Is it possible? EDIT I tried with a sibling: a:hover ul { opacity: 0.5; } <header> <ul> <li><a href="#">Hover me</a><span></span> <ul> <li>Child 1</li> <li

C# Windows Forms semi-opacity

匆匆过客 提交于 2021-02-05 06:44:24
问题 I have already read many topics about opacity/transparency on Windows Forms in C#, but it's not the effect I would like to get. I would like Form to be 100% transparent, but transparency of the Panel was adjustable, and the transparency effect was transferred to the elements behind Form (Windows desktop, web browser e.t.c.). The attached photo shows the effect that I would like to get (I made them in a graphic program). I will be grateful for your help. 回答1: OP: If there is any other language

How to prevent MultiView opacity from affecting children components texts in Delphi?

半世苍凉 提交于 2021-02-05 06:22:25
问题 I'm using MultiView with some TButton buttons in Firemonkey. The multiView is opaque at 0.5 and this causes the buttons to also be opaque. QUESTION : Is there a way to prevent MultiView opacity from affecting the button texts? That is, the text of the buttons would continue with bright colors, but the "body" of the buttons would be opaque. I've seen some applications with this visual feature, but I do not know what components were used for that purpose ... 回答1: Instead of the TMultiView , use

Are CSS Variable changes possible upon a radio button's checked selector being triggered?

▼魔方 西西 提交于 2021-02-04 07:28:28
问题 I have the following CodePen: Test LCD with CSS Variables, in which upon clicking labels with specific digits, results in the appropriate LCD segments to be "lit" based on algebraic equations I've determined to mimic a BCD to 7-Segment Display Decoder, in order to simulate an LCD display... I currently have the first segment's equation mentioned in the CSS. Clicking on a digit in the CSS should theoretically result in the appropriate four --input variables to be populated with a pulse (0 or 1

Ternary plot - scaling opacity across groups

夙愿已清 提交于 2021-01-29 21:30:52
问题 I am trying to make a contour ternary plot, with two groups, where the opacity (alpha) of the contours is a function of the density of the points (e.g. more points tightly clustered = less opaque). I am stuck on one point. My two groups (here A and B ) have unequal group sizes ( A = 150 obs, B = 50 obs), this means points in one group are frequently alot more clustered, when this is the case the opacity of group B should be much higher relative to group A , since points in group B are much

Ternary plot - scaling opacity across groups

痞子三分冷 提交于 2021-01-29 19:37:29
问题 I am trying to make a contour ternary plot, with two groups, where the opacity (alpha) of the contours is a function of the density of the points (e.g. more points tightly clustered = less opaque). I am stuck on one point. My two groups (here A and B ) have unequal group sizes ( A = 150 obs, B = 50 obs), this means points in one group are frequently alot more clustered, when this is the case the opacity of group B should be much higher relative to group A , since points in group B are much