Crossbrowser css gradient in IE10, IE11

狂风中的少年 提交于 2019-12-06 08:39:34

I used these they do what I want white to a pale red top to bottom. Tested with: FireFox 33.0.3 in Windows 8.1 IE 11.0.13 in Windows 8.1 Opera 25 in Windows 8.1 Chrome 38 in Windows 8.1 Safari 8.0 in OS X 10.10 (Yosemite) Firefox 26.0 in OS X 10.10 (Yosemite)

background: #ffffff; 
background: -webkit-linear-gradient(bottom, #d85570, white); /* For Safari 5.1 to 6.0 */
background: -moz-linear-gradient(top, white, #d85570); /* For Firefox 3.6 to 15 */
background: -o-linear-gradient(white, #d85570); /* For Opera 11.1 to 12.0 */ 
background: linear-gradient(top,#d85570, white); /* Standard syntax */
background: linear-gradient(to bottom, #white, #d85570); /* IE ? */
background: -ms-linear-gradient(top, #ffffff, #d85570); /* IE 11 */

Try with http://css3pie.com/

example in css:

  background: -webkit-linear-gradient(#ffffff 0%, #000099 30%);
  background: -moz-linear-gradient(#ffffff 0%, #000099 30%);
  background: -o-linear-gradient(#ffffff 0%, #000099 30%);
  background: linear-gradient(#ffffff 0%, #000099 30%);
  -pie-background: linear-gradient(#ffffff 0%, #000099 30%);
  behavior: url("/Scripts/PIE.htc");
  background: -webkit-gradient(linear, 0 6px, 0 bottom, from(#ffffff), to(#000099));
  background: -ms-linear-gradient(top center, #ffffff 0%, #000099 30%);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!