适用任何网站:自适应 文字广告 好看的文字广告代码,一款彩色的文字广告 自适应广告 代码如下,代码仅有两排 需要多排 可自行设置。HTML代...
适用任何网站:自适应 文字广告 好看的文字广告代码,一款彩色的文字广告 自适应广告 代码如下,代码仅有两排 需要多排 可自行设置。
HTML代码:
您好,你需要登录本站账号后才能查看隐藏内容哦,请先 登录 才能查看哦,若不是会员请先 注册!
CSS代码:
/**新增文字广告**/ .txtguanggao { width: 100%; overflow: hidden; display: block; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); } .txtguanggao a { width: 24.5%; float: left; border-radius: 2px; line-height: 35.35px; height: 35.35px; text-align: center; font-size: 14px; color: #fff; display: inline-block; background-color: rgb(255, 153, 159); margin: 2.5px; transition-duration: .3s; } .txtguanggao a:nth-child(1) { background-color: #dc3545; } .txtguanggao a:nth-child(2) { background-color: #007bff; } .txtguanggao a:nth-child(3) { background-color: #28a745; } .txtguanggao a:nth-child(4) { background-color: #ffc107; } .txtguanggao a:nth-child(5) { background-color: #28a745; } .txtguanggao a:nth-child(6) { background-color: #ffc107; } .txtguanggao a:nth-child(7) { background-color: #dc3545; } .txtguanggao a:nth-child(8) { background-color: #007bff; } .txtguanggao a:hover { background: #FF2805; color: #FFF } @media screen and (max-width: 768px) { .txtguanggao a { width: 47.96%; float: left; border-radius: 2px; line-height: 35.35px; height: 35.35px; text-align: center; font-size: 14px; color: #fff; display: inline-block; background-color: rgb(255, 153, 159); margin: 2.5px; transition-duration: .3s; } }
博主专注于Z-BLOG网站搭建、优化、故障排查
电脑故障排查、重装系统、优化系统等,QQ/WX:2126245521(请注明来意)
本文暂无评论 - 欢迎您