Tag: 透明

Iframe透明背景

我的应用程序有一个模式对话框,里面有一个iframe。 我写了我的jQuery代码,当对话框打开时,它设置iframe的适当的'src'属性,以便加载内容。 但是,在对话框打开和内容加载之间的延迟期间,iframe显着地呈现为白色框。 我宁愿iframe有一个透明的背景。 我已经尝试在iframe上设置allowtransparency =“yes”。 有任何想法吗? 谢谢!

在活动之上创build一个透明的对话框

背景 我正在尝试在当前活动的顶部放置一个图层,以解释当前屏幕上发生的情况,类似于contact + app上发生的情况。 我知道有一些解决scheme(如showCase库和superToolTips库),我也知道,我可以创build一个视图,并将其添加到活动窗口顶部,但我需要把整个对话层在上面。 问题 无论我尝试什么,每个解决scheme都不能按我需要的方式工作。 总之,我需要的是: 全屏幕对话框。 对操作栏,通知栏和后面活动的内容没有任何改变(不可视和不合逻辑),这意味着对话框后面的所有内容都保持不变,在对话框显示前一刻显示。 除了用于对话框的视图之外,它们应该是透明的,应该正常显示。 我试过了 可悲的是,我一直只得到我需要的东西的一部分。 这是我的代码: styles.xml: <style name="full_screen_dialog"> <item name="android:windowFrame">@null</item> <item name="android:windowIsFloating">true</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> </style> MainActivity.java: … final Dialog dialog = new Dialog(this, R.style.full_screen_dialog); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.setContentView(R.layout.floating_tutorial); dialog.getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); dialog.getWindow().setFormat(PixelFormat.TRANSLUCENT); dialog.show(); 这段代码将把布局放在活动的顶部,但是可惜的是它没有任何透明度,尽pipe我已经设置了它。 我使用的布局非常简单,这就是为什么我不发布它。 题 我错过了什么? 应该做些什么来修复代码? 我怎样才能使对话框透明,全屏幕,并不会更改操作栏和通知栏。 工作解决scheme 编辑:find一个好的解决scheme后,这里的工作代码: @Override protected void onCreate(final […]

如何在jQuery中将背景颜色设置为透明?

我可以从透明到彩色animation,但是当我告诉jQuery使backgroundColoranimation时:“透明”只是变成了白色。 任何想法如何解决这个问题?

如何在WinForms中设置面板的不透明度或透明度?

我想知道如何改变或修改在C#面板的透明度,而不是整个窗体,但只有面板..我已经看到许多不透明度的C#教程,但它的forms。 即时通讯只寻求如何可能与专家小组。 谢谢!

透明的iframe身体

我需要有一个(crossdomain)iframedynamic宽度和高度。 我的问题是,我可以创build一个100%的大小和透明的背景,将显示这个iframe的父,在它后面的iframe? 我可以附加一个css属性或iframe背景的透明gif来实现这个效果吗? 谢谢。

在Android 5.0 API 21棒棒糖中寻找棒大拇指不透明

API级别<21 拇指透明,如预期。 在API级别21上 拇指是不透明的,不知道为什么。 这是代码 <SeekBar android:id="@+id/ui_audioplayer_progressbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:progressDrawable="@drawable/custom_progress_bar_horizontal" android:thumb="@drawable/stud_slider" /> 有趣的是,当您更改API级别透视图时,可以在eclipse本身的xml预览中看到并再现此问题。 注意: 我在两个设备上运行相同的apk。 两款设备的制造商和型号都相同,即Nexus 5。 拇指图像是具有透明背景的PNG,从API Level <21的屏幕截图显而易见 这是一个已知的棒棒糖错误,或者我做错了什么?

IE中的IFrame背景透明

所以我有这个类的iframe .transparentbg: .transparantbg{ background-color: transparent; } 这在Chrome中正常工作,但不在IE中… 请帮助? 问候

设置CGContext透明背景

我仍然在用CGContext绘制一条线。 我其实已经去画线,但是现在我需要Rect的背景是透明的,所以现有的背景显示通过。 这是我的testing代码: (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor); CGContextSetAlpha(context,0.0); CGContextFillRect(context, rect); CGContextSetStrokeColorWithColor(context, [UIColor whiteColor].CGColor); CGContextSetLineWidth(context, 5.0); CGContextMoveToPoint(context, 100.0,0.0); CGContextAddLineToPoint(context,100.0, 100.0); CGContextStrokePath(context); } 有任何想法吗?

与边界的透明圈子

我想在android中使用XML创build一个只有边框的圆: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" > <stroke android:width="1dp" android:color="#000000"/> </shape> 我使用的代码已在上面发布。 但是,我得到一个坚实的磁盘和一个不响。 我想获得输出只使用XML而不是canvas。 我究竟做错了什么? 谢谢。 编辑:得到它的工作感谢下面的答案。 下面是我的最终代码: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="0dp" android:shape="ring" android:thicknessRatio="1.9" android:useLevel="false" > <solid android:color="@android:color/transparent" /> <size android:width="100dp" android:height="100dp"/> <stroke android:width="1dp" android:color="#FFFFFF"/> </shape>

如何在代码中设置图像button的透明背景?

我可以在layout.xml使用ImageButton背景透明: android:background="@android:color/transparent" 如何使用java代码来实现同样的function? 像ib.setBackgroundColor(???);