gpt4 book ai didi

eclipse - 所有 CSS 文件的编译错误(行过滤器 :progid) in a GWT project

转载 作者:行者123 更新时间:2023-11-28 09:20:07 26 4
gpt4 key购买 nike

我的所有 CSS 文件都在“filter: progid: DXImageTransform.Microsoft.gradient”行出现编译错误。这是我的 CSS 示例和我在 Eclipse 上为这个 GWT 元素得到的错误。你能看出原因吗?

错误:

Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
Preparing method style
The following problems were detected
[WARN] Line 25 column 9: encountered ":". Was expecting one of: "}" "+" "-" "," ";" "/" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <IMPORTANT_SYM> <UNICODERANGE> <FUNCTION>
[WARN] Line 139 column 17: encountered ":". Was expecting one of: "}" "+" "-" "," ";" "/" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <IMPORTANT_SYM> <UNICODERANGE> <FUNCTION>

CSS 文件:

.header {
position:absolute;
top:0px;
heigth:40px;
width:100%;

-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
box-shadow: 0 1px 2px rgba(0,0,0,.2);

background: #0a0809; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,allthestuffhere==);
background: -moz-linear-gradient(top, #0a0809 0%, #0a0e0a 43%, #292b28 100%, #aebcbf 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0a0809), color-stop(43%,#0a0e0a), color-stop(100%,#292b28), color-stop(100%,#aebcbf)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #0a0809 0%,#0a0e0a 43%,#292b28 100%,#aebcbf 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #0a0809 0%,#0a0e0a 43%,#292b28 100%,#aebcbf 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #0a0809 0%,#0a0e0a 43%,#292b28 100%,#aebcbf 100%); /* IE10+ */
background: linear-gradient(to bottom, #0a0809 0%,#0a0e0a 43%,#292b28 100%,#aebcbf 100%); /* W3C */
filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#0a0809', endColorstr='#aebcbf',GradientType=0 ); /* IE6-8 */
}

最佳答案

因为 filter 属性不符合 CSS 语法,所以使用 literal function

filter: literal("progid:DXImageTransform.Microsoft.gradient(startColorstr='#0a0809', endColorstr='#aebcbf',GradientType=0)");

关于eclipse - 所有 CSS 文件的编译错误(行过滤器 :progid) in a GWT project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12555837/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com