如何在HTML网页中左右两边插入滚动图片,中间显示输入文字,求它的代码?
发布网友
发布时间:2022-04-29 22:02
我来回答
共1个回答
热心网友
时间:2023-10-09 13:44
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<style type="text/css">
div{float:left;display:block; margin:0px; padding:0px;}
.quan{ width:900px; height:100px;}
.left{ width:300px; height:100px;}
.left img{ width:100px; height:100px;}
.mid{ width:300px; height:100px; text-align:center;}
.right{ width:300px; height:100px;}
.right img{ width:100px; height:100px;}
</style>
<body>
<div class="quan">
<div class="left"><marquee><img src="1.jpg"><img src="2.jpg"><img src="3.jpg"></marquee></div>
<div class="mid">输入文字部分</div>
<div class="right"><marquee><img src="1.jpg"><img src="2.jpg"><img src="3.jpg"></marquee></div>
</div>
</body>
</html>