background-color, soIs 60%. See DEMO and sample diagram for details:Then we can make use of IE's HACK, separate the filter of IE9 into a transparent degree of 0. Senior BangsMost of the browser support: Root pseudo class, but does not support the filter property, and IE only IE9 support, so we canTo write like this. The code is as follows:
: Root. rgba{
Filter:progid:DXImageTransform.Microsoft.Gradient (gradienttype=0, startcolorstr= ' #00000000 ', endcolorstr= ' # 00000000 ')
Recommandviewcontroller *RECOMMANDVC =[[Recommandviewcontroller alloc]init]; if([[[[Uidevice Currentdevice] systemversion] Floatvalue] >=8.0) {Recommandvc.modalpresentationstyle=Uimodalpresentationovercurrentcontext| Uimodalpresentationfullscreen;//if the controller has a container like Navigationcontroller or Tababr controlelr,if you don ' t use the Uimodalpresentatio Nfullscreen the bar would cover the Viewcontroller[Findappdelegate (). Window.rootviewcontroller PRESENTVIEWCONTROLLER:RECOMMAND
You can refer to my code below:
xxx:{ border:5px solid rgba (xxx, xxx, xxx, 0.5)}
One of the first xxx is the element you choose to need translucentThe next xxx is the color you want to translucentSet the transparency to 0.5 to be translucent.
. Transparent{filter:alpha (opacity=50);-moz-opacity:0.5;-khtml-opacity:0.5;opacity:0.5;} Filter:alpha (OPACITY=50): This is for the IE6 set, the value is 0-100, the other three 0 to 1.-moz-opacity:0.
First, the way XML is implemented UseDialog = New dialog (context, R.style.circular_dialog);Dialog.setcontentview (R.layout.progress_dialog);Second, with the implementation of code Dialog = New dialog (context);Probar = new ProgressBar (context,null,android. R.attr.progressbarstylelarge);Layout = new LinearLayout (context);Layout.addview (probar,new layoutparams (layoutparams.fill_parent,layoutparams.fill_parent));Dialog.requestwindowfeature (Window.feature_no_title);Dialog.getwindow (). S
In the first Viewcontroller do the following setup let Controller = Uistoryboard (name: "Main", Bundle:nil). Instantiateviewcontrollerwithidentifier ("Secondviewcontroller") as! Secondviewcontroller controller.view.backgroundColor = Uicolor (red:0, green:0, blue:0, alpha:0.6) Self.modalpresentationstyle = Uimodalpresentationstyle.fullscreen self.presentviewcontroller (Controller, Animated:true, Completion:nil) Add the following code to the Viewdidload () method i
The status bar of the iPhone can be set to translucent, which is well known. With uinavigationcontroller, when switching pages, if the view of your sub-viewcontroller is full screen (480*320), there will be misplacement, the result is that the sub-view is shifted down by 20 pixels (that is, the height of the status bar ). I did not find the answer after searching for a long time, so I went to the official document and found this method. This is an att
In the previous chapter, I introduced some area editing modules that can be added to the mask page. This chapter describes how to display the mask layer on the parent page and how to display a dialog in translucent state. Dialog is the pop-up subpage, div.As follows:The Code is as follows:Copy codeThe Code is as follows:Peach Blossom blossom (excerpt from Zhang xiaosi)Peach Blossom in the dock, peach blossom under the peach blossom fairy.Peach Blossom
Use MFC to implement the translucent effect of the buttons above to see the content in the parent window, which is above (one with a background image and the other without a background image ).Controls inherit from the CWnd class (the color part is the background image of the window, the button is a PNG image, and the second icon is the effect when the mouse points ).Use GDI + to draw a PNG image. I will not talk about it here (to process the WM_PAINT
Using CSS to control the outer div opaque, and the inner div transparent, so the effect is unexpected, but also good, in fact, the code is very simple, but also very good understanding, mainly with the CSS filter.Reference: http://www.codefans.net/jscss/code/1061.shtmlCss Div Translucent
, 2 for radial, and 3 for the rectangle. For example, we can generally write style=1.(4) "StartX" and "Starty" are the x and Y coordinates that represent the beginning of the gradient effect, (coordinates should know what it is) generally we set it to Startx=0, starty=0 (so that is, the transparency effect is to start from the upper left corner of the picture. )(5) "Finishx" and "finishy" of course, this is to represent the gradient effect at the end of the horizontal ordinate, here is the key,
Tip: You can modify some of the code before running
A small window pops up in a Web page, and the page background becomes translucent
Tip: You can modify some of the code before running
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.