zoukankan      html  css  js  c++  java
  • css静态无间接滚动/动态数据可换另一种方法

    <!DOCTYPE html>
    <!-- saved from url=(0064)https://www.xiabingbao.com/demo/css3-infinite-scroll/simple.html -->
    <html lang="en">
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    		<title>CSS3无限滚动</title>
    		<style type="text/css">
    			@-webkit-keyframes rowup {
    				0% {
    					-webkit-transform: translate3d(0, 0, 0);
    					transform: translate3d(0, 0, 0);
    				}
    
    				100% {
    					-webkit-transform: translate3d(0, -307px, 0);
    					transform: translate3d(0, -307px, 0);
    				}
    			}
    
    			@keyframes rowup {
    				0% {
    					-webkit-transform: translate3d(0, 0, 0);
    					transform: translate3d(0, 0, 0);
    				}
    
    				100% {
    					-webkit-transform: translate3d(0, -307px, 0);
    					transform: translate3d(0, -307px, 0);
    				}
    			}
    
    			.demo-list {
    				 300px;
    				border: 1px solid #999;
    				margin: 20px auto;
    				position: relative;
    				height: 200px;
    				overflow: hidden;
    			}
    
    			.demo-list .rowup {
    				-webkit-animation: 10s rowup linear infinite normal;
    				animation: 10s rowup linear infinite normal;
    				position: relative;
    			}
    		</style>
    	</head>
    	<body>
    		<div class="demo-list">
    			<div class="cc rowup">

    <div class="item"><span>李先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>季先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>方先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>韦先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>郑小姐</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>张小姐</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>郑小姐</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>周小姐</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>周先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>李先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>李先生</span><span>155****1213</span><span>3分钟前</span></div>
    <div class="item"><span>李先生</span><span>155****1213</span><span>3分钟前</span></div>

    			</div>
    		</div>
    
    	</body>
    </html>
    

      

    代码改变了我们,也改变了世界
  • 相关阅读:
    explode — 使用一个字符串分割另一个字符串
    echo — 输出一个或多个字符串
    count_chars — 返回字符串所用字符的信息
    convert_uuencode — 使用 uuencode 编码一个字符串
    convert_uudecode — 解码一个 uuencode 编码的字符串
    convert_cyr_string — 将字符由一种 Cyrillic 字符转换成另一种
    chunk_split — 将字符串分割成小块
    chr — 返回指定的字符
    addslashes — 使用反斜线引用字符串
    addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符
  • 原文地址:https://www.cnblogs.com/wencaiguagua/p/15692384.html
Copyright © 2011-2022 走看看