css: rainbow Border with gradient and radius

发布时间 2024-01-05 21:00:06作者: ®Geovin Du Dream Park™

 

<!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>