请教下思路_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:15:12
Original
975 people have browsed it

现在我想把DIV 做成轮播的样子,可以实现点击左右的图片按钮可以实现滚动

1.如何把div在一个固定宽度的下实现一行显示,因为当宽度不足的时候回另起一行,怎么才能做到只在一行实现,多出的会使用overhidden。 父元素该怎么设置,底下的子元素该怎么设置?



回复讨论(解决方案)

你想复杂了,看图

红框表示一个限定尺寸的 div,黑框表示一个普通的 div
当将黑框放在红框里时,黑框中的内容只在红框的部分能看的见,所以红框也称为 视口
只要黑框在移动,视口中的内容就会不断变化


.....

演示一下

<div style='position:relative;width:40px; height:20px;border:1 solid red;'><marquee style='position:absolute; left:0'>ABCDEFGHIJKLMNOPQRSTUVWXYZ.....</marquee><div>
Copy after login
Copy after login

大体的思路明白了,感谢版主

演示一下

<div style='position:relative;width:40px; height:20px;border:1 solid red;'><marquee style='position:absolute; left:0'>ABCDEFGHIJKLMNOPQRSTUVWXYZ.....</marquee><div>
Copy after login
Copy after login

大神,请教一下,这个GIF图片是用什么软件做的?

百度搜索:ShareX

百度搜索:ShareX


3Q,you are so cute
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!