<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Css跑马灯</title>
<style>
body{
font-size: 14px;
}
/* 跑马灯 */
.homepage-news {
display: flex;
align-items: center;
width: 100%;
height: 4rem;
box-sizing: border-box;
padding: 0 2rem 0 2.1rem;
 
}
.left-icon {
margin-right: 0.5rem;
font-size: 1.6rem;
color: #D3B05B;
}
.right-icon {
font-size: 1.1rem;
color: #D3B05B;
}
.homepage-news-msg-wrap {
height: 4rem;
line-height: 4rem;
flex-grow: 1;
overflow: hidden;
}
.homepage-news-msg {
color: rgb(211, 176, 91);
font-size: 1.3rem;
width: 100%;
height: 4rem;
display: inline-block;
line-height: 4rem;
white-space: nowrap;
transition: transform;
animation: home-news 5s infinite;
}
/* 跑马灯 */
@keyframes home-news {
0% {
transform: translate3d(100%, 0, 0);
}
50% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-100%, 0, 0);
}
}
</style>
</head>
<body>
<div class="homepage-news">
<i class="lufont icon-caution left-icon">!</i>
<div class="homepage-news-msg-wrap">
<span class="homepage-news-msg">您有未完成面签的订单,逾期将被取消,请尽快面签</span>
</div>
<i class="lufont icon-arrowright2 right-icon">></i>
</div>
</body>
</html>

最新文章

  1. 更改android AVD模拟器创建路径位置的方法
  2. Delphi Application.MessageBox详解
  3. ubuntu下的第一个脚本file.sh
  4. iOS应用的真机调试
  5. Gvim自动编译运行c++11的程序
  6. jquery学习(2)toggle
  7. Objective-C 程序设计第四版 二
  8. 看图说话,P2P 分享率 90% 以上的 P2P-CDN 服务,来了!
  9. 调用链监控 CAT 之 URL埋点实践
  10. 第2章 Java编程基础
  11. 手工脱壳之FSG压缩壳-IAT表修复
  12. 英语初级学习系列-00-Hello-打招呼
  13. 【C++】一篇文章,让你不再害怕指针
  14. 微信小程序之 真机键盘弹窗遮盖input框
  15. sql语句中left join和inner join中的on与where的区别分析
  16. solt插槽的使用。
  17. maven 常用插件3
  18. 常用的 composer 命令
  19. SAML
  20. 设置更改root密码 连接mysql mysql常用命令

热门文章

  1. Pytorch实战学习(一):用Pytorch实现线性回归
  2. Jmeter学习:常用内置函数
  3. REST开发(1)
  4. Kafka -- 基本操作
  5. 监控可视化nagios xi
  6. Java基础__04.GUI编程
  7. watch监听中的deep以及immdiate
  8. Hyper-V虚拟机在Win2019server中共用一个公网IP
  9. 解题报告:Codeforces 768B Code For 1
  10. 正则表达式re.compile()的使用