<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>lunbo</title>
<link rel="stylesheet" href="css/css.css" />
<link rel=" stylesheet" href="layui/css/layui.css" />
<script src="layui/layui.js" type="text/javascript"></script>
</head>
<body>
<div class="layui-carousel" id="test1">
<div carousel-item>
<div style="background: #0000FF; /">666</div>
<div style="background -color: #009E94; /">2222</div>
</div>
</div>
<!-- in the entry It can be any content, such as: <img src=""> -->
##<script>layui. use('carousel', function(){ var carousel = layui.carousel; //Build instance carousel.render({ elem: '#test1' ,width: '100%' //Set the container width ,arrow: 'always' //Always display the arrow
,anim: 'default' //Switch animation mode });});</script></body></html>