求html文字背景色渐变的代码

发布网友 发布时间:2022-04-22 04:56

我来回答

1个回答

热心网友 时间:2022-05-12 18:31

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
.linear {
font-size:18px;
font-weight:400;
width:250px;
;
height:40px;
line-height:40px;
FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0, startColorStr=##218ee1, endColorStr=#ffffff); /*IE*/
background:-moz-linear-gradient(left, #218ee1, #fafafa);/*火狐*/
background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#15A216), to(#ffffff));/*谷歌*/
background-image: -webkit-gradient(linear, left bottom, left top, color-start(0, #218ee1), color-stop(1, #ffffff));/* Safari & Chrome*/
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#15A216', endColorstr='#fafafa'); /*IE6 & IE7*/
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#15A216', endColorstr='#fafafa')"; /* IE8 */
}
</style>
</head>

<body>
<div class="linear">申请鉴定流程便捷</div>
</body>
</html>

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com