- N +

广告代码 块状渐变文字广告美化版代码分享

广告代码 块状渐变文字广告美化版代码分享原标题:广告代码 块状渐变文字广告美化版代码分享

导读:

...


<style>
 .text-block{
   width: 100%;
   overflow: hidden;
   background: rgba(255,255,255,.6);
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
 }
 .text-block a{
   color: rgba(0,0,0,.6);
   font-size: 14px;
   font-weight: bold;
   line-height: 30px;
   text-align: center;
   text-decoration: none;
   display: block;
   width: 19.5%;
   height: 30px;
   overflow: hidden;
   position: relative;
   margin: 1px 0;
 }
 .text-block a div{
   width: 100%;
   height: 60px;
   padding: 0 5px;
   box-sizing: border-box;
   position: absolute;
   top: 0;
   left: 0;
   transition: all .3s;
 }
 .text-block a:hover div{
   transition: all .3s;
   color: #fff;
   top: -30px;
   text-shadow: 0 2px 3px rgba(0,0,0,.6);
 }
 .text-block p{
   width: 100%;
   white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 .text-block a div :nth-child(1){
     background: linear-gradient(to right,#b4b4ff, #aedefc);
 }
 .text-block a div :nth-child(2){
     background: linear-gradient(to right,#aedefc,#b4b4ff);
 }
</style>

有好的文章希望我们帮助分享和推广,猛戳这里我要投稿

返回列表
上一篇:
下一篇:

发表评论中国互联网举报中心

快捷回复:

    评论列表 (暂无评论,共120人参与)参与讨论

    还没有评论,来说两句吧...