Applied Visual Design: Create a Gradual CSS Linear Gradient

background: linear-gradient(gradient_direction, color 1, color 2, color 3, ...)
 
The first argument specifies the direction from which color transition starts - it can be stated as a degree, where 90deg makes a vertical gradient and 45deg is angled like a backslash.
The following arguments specify the order of colors used in the gradient.
 
Example:
background: linear-gradient(90deg, red, yellow, rgb(204, 204, 255));

练习代码如下:

<style>
div {
border-radius: 20px;
width: %;
height: 400px;
margin: 50px auto;
background: linear-gradient(35deg, #ccffff, #ffcccc);
}
</style>
<div></div>
效果如下:
 
 

最新文章

  1. ASP.NET MVC Filters 4种默认过滤器的使用【附示例】
  2. Lua查找表元素过程(元表、__index方法是如何工作的)
  3. Linux 中常见的命令行,持续更新
  4. 黄聪:wordpress如何开启文章格式post format
  5. How Does #DeepDream Work?
  6. 利用if,else判断输入的是不是一个正整数
  7. Sqlite数据库的加密
  8. struts----用Action的属性接收参数
  9. Solr -- Solr Facet 2
  10. 【Tomcat】Tomcat工作原理及简单模拟实现
  11. idea integrate project
  12. kafka单节点的安装,部署,使用
  13. HashMap遍历的两种方式,推荐使用entrySet()
  14. 杂谈2.cpp
  15. Unity 处理预设中的中文
  16. LeetCode--020--括号匹配(java版)
  17. 51nod 1295 XOR key (可持久化Trie树)
  18. Android 开发添加控件事件的三种方式
  19. golang-开发配置
  20. ezmorph-1.0.6.jar的作用

热门文章

  1. python操作文件和目录查看、创建、删除、复制
  2. JS---变速动画函数封装
  3. 扫描枪连接zebra打印机打印条码标签无需电脑
  4. CentOS7 下nginx与PHP的安装与配置
  5. 管网平差的python程序
  6. Linux ipv6 无状态 设置为 eui64
  7. C# 使用.net core 驱动树莓派的IO信号
  8. Exceptionless应用--自定义插件
  9. Vue 中的keep-alive 什么用处?
  10. iOS正则表达式解决实际问题