CSS: rainbow Border with gradient and radius
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | <! doctype html> < html > < head > < meta charset="utf-8"> < meta http-equiv="X-UA-Compatible" content="IE=edge"> < meta name="viewport" content="width=device-width, initial-scale=1.0"> < title >css rainbow Border with gradient and radius </ title > < meta content="涂聚文,Geovin Du,塗聚文,geovindu,捷为工作室" name="keywords"> < meta content="涂聚文,Geovin Du,塗聚文,geovindu,捷为工作室" name="description"> < meta http-equiv="X-UA-Compatible" content="chrome =1" /> < meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> < link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" /> < link rel="icon" href="/favicon.ico" /> < link rel="bookmark" href="/favicon.ico" type="image/gif" /> < meta name="author" content="Geovin Du 涂聚文,塗聚文,geovindu"> < style type="text/css"> @charset "UTF-8"; @font-face{ font-family:"minizhuanshu"; src:url("webfont/fonts/3pdwg6wqe1jpcgh.eot");/*IE 9 Compat Modes*/ src:local("迷你繁篆书"), url("webfont/fonts/3pdwg6wqe1jpcgh.eot?#iefix") format("embedded-opentype"),/*IE6-IE8 加载不成功*/ /*src: local('minizhuanshu'), local('minizhuanshu'),*/ url("webfont/fonts/3pdwg6wqe1jpcgh.woff2") format("woff2"), url("webfont/fonts/3pdwg6wqe1jpcgh.otf") format("opentype"), url("webfont/fonts/3pdwg6wqe1jpcgh.woff") format("woff"),/*Modern Browsers*/ url("webfont/fonts/3pdwg6wqe1jpcgh.ttf") format("truetype"),/*Safari,Android,iOS */ url("webfont/fonts/3pdwg6wqe1jpcgh.svg#minizhuanshu") format("svg");/*Legacy iOS */ font-weight:normal; font-style:normal;/*字体样式*/ font-display: swap; /* 先匹配到的已经能够使用的字体,字体成功载入后切换字体*/ text-rendering: optimizeLegibility; /*CSS 属性定义浏览器渲染引擎如何渲染字体。浏览器会在速度、清晰度、几何精度之间进行权衡。*/ } .gradient-box { font-family: "minizhuanshu"; font-size: 18px; display: flex; align-items: center; width: 90%; margin: auto; max-width: 22em; position: relative; padding: 30% 2em; box-sizing: border-box; color: #FFF; background: #000; background-clip: padding-box; /* !importanté */ border: solid 5px transparent; /* !importanté */ border-radius: 1em; } .gradient-box:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; margin: -5px; /* !importanté */ border-radius: inherit; /* !importanté */ background:linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%); /*linear-gradient(to right, red, orange);*/ } html { height: 100%; background: #000; display: flex; } body { margin: auto; } </ style > </ head > < body > < div class="gradient-box"> < p >在其一般意义上,政府正义,即政府对社会公共事务进行管理的一种合理状态,意味着政府不妨碍且促进权利和义务、资源与利益在社会成员之间的适当安排和合理分配。在其法哲学层面,政府正义的核心命题是“如何通过一个‘善’的政治过程及制度建设实现整个社会的正义或者一个正义的社会”在这个意义上,政府正义包含了两层含义:一是政府本身应当是正义的一包括政府的产生和运行过程都应当合乎正义原理;二是政府是应当为实现正义而存在的--社会正义的实现,是需要政府这个存在的,而政府存在的根本价值,正在于实现社会正义。 --法治政府要论丛书 《法治政府要论--基本原理》江国华 着 武汉大学出版社 2020年12月 </ p > </ div > </ body > </ html > |
https://css-tricks.com/gradient-borders-in-css/
50 CSS Gradient Border Examples
https://devdevout.com/css/css-gradient-borders
哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)生存.---Geovin Du(涂聚文)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
2013-01-05 Csharp: create Transparent Images in winform
2012-01-05 sql server 2000/2005 script