CSS3线性渐变
2024-08-25 20:30:26
万恶的IE!!!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.linear{
width:100%;
height:600px; background:-moz-linear-gradient(top,#15A216,#fafafa);/*火狐*/
background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#15A216), to(#fafafa));/*谷歌*/
filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=1); /*IE*/
background:-ms-linear-gradient(top,#15A216,#fafafa);
background:filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa'); /*IE6 & IE7*/
background:-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa')"; /* IE8 */
}
</style>
</head>
<body>
<div class="linear"></div>
</body>
</html>
最新文章
- win10 64位安装memcache扩展和开启redis扩展
- 自发行python版本制作(一)
- Redis的安装与部署
- mysql问题小结
- javascript 对象(DOM)document window history
- js判断输入框的范围,并且只能输入数字
- Mysql部分常用类型长度含义
- c++ linux 下的调试工具及用法
- 2017-02-19C#基础 - 数据类型与类型转换
- iOS 字典实现原理
- golang运算与循环等
- 第二章 Java 基本语法1
- Ubuntu 15.10 下Tachyon安装
- 菜鸟系列docker——docker仓库(2)
- 谈谈 ArrayList 和 LinkedList 的区别
- 微信小程序开发学习记录
- 【LeetCode105】Construct Binary Tree from Preorder and Inorder Traversal★★
- HDU - 3564 Another LIS(LIS+线段树)
- 使用jstl标签时提示The absolute uri: http://java.sun.com/jsp/jstl/core cannot
- Javascript判断Crontab表达式是否合法
热门文章
- Tcp Socket非阻塞recv
- Jekyll: .md to .html with self defined themes..
- Swift Runtime动态性分析
- 初探OpenGL(一)
- HDU 5769 Substring
- [转]Publishing and Running ASP.NET Core Applications with IIS
- hdu_2089_不要62(数位DP)
- LeetCode OJ 292.Nim Game
- HDU1686:Oulipo
- H5调用本地摄像头