颜色看起来不同设备模拟器
问题描述:
我有这样的UIWebView从一个HTML文件,这种风格上写着:颜色看起来不同设备模拟器
<style type="text/css">
body {
padding: 0 10px 0 10px;
background-image: linear-gradient(bottom, rgb(9,57,48) 0%, rgb(54,97,71) 0%, rgb(120,169,118) 80%);
background-image: -o-linear-gradient(bottom, rgb(9,57,48) 0%, rgb(54,97,71) 0%, rgb(120,169,118) 80%);
background-image: -moz-linear-gradient(bottom, rgb(9,57,48) 0%, rgb(54,97,71) 0%, rgb(120,169,118) 80%);
background-image: -webkit-linear-gradient(bottom, rgb(9,57,48) 0%, rgb(54,97,71) 0%, rgb(120,169,118) 80%);
background-image: -ms-linear-gradient(bottom, rgb(9,57,48) 0%, rgb(54,97,71) 0%, rgb(120,169,118) 80%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(9,57,48)),
color-stop(0, rgb(54,97,71)),
color-stop(0.8, rgb(120,169,118))
);
}
</style>
当我运行它在iPhone模拟器一切顺利,它看起来像这样:
当我运行在设备上的问题是,它看起来像(查看图像的BUTTOM):
如何才能使这个模糊的白色结束消失?
答
更改您的白色停止为100%(1.0)为您的渐变。
我该怎么做? – 2012-02-26 13:43:15
'bottom,rgb(9,57,48)0%,rgb(54,97,71)0%,rgb(120,169,118)80%'应该是'bottom,rgb(9,57,48)0%,rgb (0,1,rgb(120,169,118))'应该是'color-stop(0,1,rgb(120,169,118))'(54,97,71)0%,rgb(120,169,118)100%'' 。 – jrtc27 2012-02-26 14:00:35