radial-gradients

How do I add a radial gradient to a UIView?

泪湿孤枕 提交于 2019-11-27 20:57:43
问题 I have a UIView which I want to have a radial gradient, and I'm wondering how to go about doing this? 回答1: To do this you need to drop down to Core Graphics and use CGContextDrawRadialGradient. Similar Stack Overflow Questions How can I draw a sector with radial gradient (iphone) How to draw a gradient line (fading in/out) with Core Graphics/iPhone? Other Resources There's a tutorial showing how to draw icons with gradients on iOS here: http://redartisan.com/2011/05/13/porting-iconapp-core

CSS3 Radial Gradients with RGBA()

房东的猫 提交于 2019-11-27 10:58:18
问题 I am working on a website which uses multiple css3 gradients as overlay for a background tiled with texture image site url: --snipped-- currently for header i am using following css: #header { background: #DBD6D3; height: 364px; background: -moz-radial-gradient(50% 0% 0deg,circle farthest-corner,#FFFFFF,#DBD6D3); background: -webkit-gradient(radial,50% 59,500,50% 0,40,from(#DBD6D3),to(#FFFFFF)); } #header .wrp{background:url('img/headerBg.png');height:100%;padding-top:40px;} here headerBg.png

Make <body> fill entire screen?

余生颓废 提交于 2019-11-26 23:54:13
I'm using a radial gradient as the background on my webpage, like so: background-image: -webkit-gradient(radial, 100% 100%, 10, 90% 90%, 600, from(#ccc), to(#000)); It works, but when the content does not fill the whole page the gradient is cut off. How can I make the <body> element fill the entire page, always? capdragon html, body { margin: 0; height: 100%; } On our site we have pages where the content is static, and pages where it is loaded in with AJAX. On one page (a search page), there were cases when the AJAX results would more than fill the page, and cases where it would return no

How to make radial gradients work in Safari?

亡梦爱人 提交于 2019-11-26 11:39:57
问题 I\'m using radial-gradients on a new site that i\'m building, but the colours are rendering differently (much darker) in Safari on desktop. Is there a better cross-browser syntax to use? I\'ve tried different prefixes, but this hasn\'t fixed the issue. The code i\'m using is as follows. .item1 { background: -webkit-radial-gradient( bottom left, farthest-side, rgba(218, 218, 216, 0.5), transparent), -webkit-radial-gradient( bottom right, farthest-corner, rgba(253, 253, 253, 0.5), transparent