Home > Web Front-end > HTML Tutorial > web技术求助_html/css_WEB-ITnose

web技术求助_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:42:56
Original
770 people have browsed it

Web 技术

切换图片时如何用css或者juery技术把下一张要出现的图片大小和上一张的图片保持一样,例如:上一张图片放大,切换到下一张时,图片大小和上一张一样大小。

回复讨论(解决方案)

把img的width和height固定就好了

我的意识是如果上一张图片放大,下一张图片的也是放大的,分辨率和上一张一样

你只要固定宽度和高度,然后改变src的值就OK了。不管你怎么换图片都是一样的size!

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