Private Declare FunctionGetWindowLongLib "User32" Alias "Getwindowlonga"(ByValhwnd as Long,ByValNIndex as Long) as LongPrivate Declare FunctionSetWindowLongLib "User32" Alias "Setwindowlonga"(ByValhwnd as Long,ByValNIndex as Long,ByValDwnewlong as Long) as LongPrivate Declare FunctionSetLayeredWindowAttributesLib "User32"(ByValhwnd as Long,ByValCrkey as Long,ByValBalpha as Byte,ByValDwFlags as Long) as LongPrivate Constws_ex_layered = H80000Private ConstGwl_exstyle = (- -)Private ConstLwa_alpha
This article mainly introduces jQuery's background login box for hot air balloon animation. it is suitable for background login interface design and is recommended to you. For more information, see. This article describes how to use jQuery to implement the login box of the hot air balloon animation background. Share it with you for your reference. The details are as follows:
The jQuery hot air balloon animation background logon box is a dynamic translucent
Overload Qdialog's void PaintEvent (Qpaintevent *) event in a derived class, adding the following code to this functionqpainter painter (this);Qlineargradient Grad (0, 0, Width (), height ());Qgradientstops GS;GS Grad.setstops (GS);Painter.fillrect (0, 0, Width (), height (), grad);http://blog.csdn.net/itjobtxq/article/details/8766721QT Draw Translucent form (rewrite PaintEvent, super simple)
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
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.