该数组用于javascript幻灯片,并且该数组包含许多用于图片的不同URL源。 如何改变这些图片的大小,使它们全部具有相同的高度和宽度?如何更改幻灯片放映的javascript数组中的图片大小?
var photos=new Array()
var photoslink=new Array()
var which=0
//define images. You can have as many as you want:
photos[0]="http://coolspotters.com/files/photos/376451/koala-bear-profile.jpg"
photos[1]="http://www.zooatlanta.org/media/image/panda_cubs2013_140731_meihuan_ZA_7836_600.jpg"
photos[2]="http://www.alaska-in-pictures.com/data/media/1/red-fox-hunting_6159.jpg"
//Specify whether images should be linked or not (1=linked)
var linkornot=0
//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="http://coolspotters.com/files/photos/376451/koala-bear-profile.jpg"
photoslink[1]="http://www.zooatlanta.org/media/image/panda_cubs2013_140731_meihuan_ZA_7836_600.jpg"
photoslink[2]="http://www.alaska-in-pictures.com/data/media/1/red-fox-hunting_6159.jpg"
如何改变这些图片的大小,使它们都具有相同的高度和宽度?
这是功课? – 2015-03-24 23:51:06
你没有在行尾加上分号(';')。请小心...... – Xufox 2015-03-24 23:54:31
这真是一个CSS问题。 – Nit 2015-03-25 00:04:46