I made a carousel image according to the layui video, but it does not display properly. I don't know where the problem lies.
千里同**络科技****
千里同**络科技**** 2020-08-09 00:27:34
0
0
1198

<!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>

千里同**络科技****
千里同**络科技****

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template