Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails IE的罗盘回退_Ruby On Rails_Internet Explorer_Cross Browser_Sass_Compass Sass - Fatal编程技术网

Ruby on rails IE的罗盘回退

Ruby on rails IE的罗盘回退,ruby-on-rails,internet-explorer,cross-browser,sass,compass-sass,Ruby On Rails,Internet Explorer,Cross Browser,Sass,Compass Sass,我目前正在尝试将compass集成到我的Rails项目中。在我尝试使用旧的firefox版本(3.0.18)和不太旧的IE版本(8)之前,一切都很顺利 例如,我的标题具有线性渐变: +background-image(linear-gradient(#8fcbef, #cee8ff)) 而且效果很好。但是对于旧的浏览器没有自动的回退。类似背景色的东西:#8fcbef 我错过什么了吗 提前谢谢 这里有几个选项: 自己为css3的每一位指定回退,并开始使用以确保仅在未解释css3时读取回退

我目前正在尝试将compass集成到我的Rails项目中。在我尝试使用旧的firefox版本(3.0.18)和不太旧的IE版本(8)之前,一切都很顺利

例如,我的标题具有线性渐变:

  +background-image(linear-gradient(#8fcbef, #cee8ff))
而且效果很好。但是对于旧的浏览器没有自动的回退。类似背景色的东西:#8fcbef

我错过什么了吗


提前谢谢

这里有几个选项:

  • 自己为css3的每一位指定回退,并开始使用以确保仅在未解释css3时读取回退
  • 尝试使用CSS3,因为它确实提供了回退
如果你想坚持使用compass,那就试试吧,因为它将Modernizer嵌入到你的应用程序中,这样你就可以在需要的时候有选择地提供备用方案

ps现代化退却的一个例子是:

// this rule is only applied if the browser is incapable of rendering css3-style gradients 
.no-cssgradients
  #header
    background-color: #8fcbef

// this rule is applied when css3 gradients are interpreted 
#header    
  +background-image(linear-gradient(#8fcbef, #cee8ff))

波旁威士忌正合我的口味。谢谢