Html
    Css
    Js

    
                        
.cont {
	width:60%;
	margin:0 auto;
	display:flex;
	justify-content:space-between;
}
.text {
	width:60%;
	height:40px;
	color:#000;
	line-height:40px;
	font-size:16px;
	border:5px solid #ddd;
	padding:0 5px;
	font-weight:bold;
	border-image:-webkit-linear-gradient(#ff4500,#ffa500) 20 20;
	border-image:-moz-linear-gradient(#ff4500,#ffa500) 20 20;
	border-image:-o-linear-gradient(#ff4500,#ffa500) 20 20;
	border-image:linear-gradient(#ff4500,#ffa500) 20 20;
}
.copy {
	width:30%;
	height:50px;
	line-height:50px;
	background-color:#ff9800;
	color:#fff;
	border:none;
	font-size:14px;
	text-align:center;
	text-align:center;
	background:-webkit-linear-gradient(left,#ff4500,#ffa500);
	background:-o-linear-gradient(right,#ff4500,#ffa500);
	background:-moz-linear-gradient(right,#ff4500,#ffa500);
	background:linear-gradient(to right,#ff4500,#ffa500);
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

通用点击复制文字(原创)

更新时间:2021-12-03 01:01:19

copy(str) str 要复制的值.

0