+ -
当前位置:首页 → 问答吧 → xml导入图片时,jpg的可以,换成png的就不可以

xml导入图片时,jpg的可以,换成png的就不可以

时间:2011-08-29

来源:互联网

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
   
   <photo>
      <filename>./img/img01.jpg</filename>
      <phototitle>图片1</phototitle>
   </photo>

   <photo>
      <filename>./img/img02.jpg</filename>
      <phototitle>图片2</phototitle>
   </photo>

   <photo>
      <filename>./img/img03.jpg</filename>
      <phototitle>图片3</phototitle>
   </photo>

   <photo>
      <filename>./img/img04.jpg</filename>
      <phototitle>图片4</phototitle>
   </photo>

   <photo>
      <filename>./img/img05.jpg</filename>
      <phototitle>图片5</phototitle>
   </photo>

   <photo>
      <filename>./img/img06.jpg</filename>
      <phototitle>图片6</phototitle>
   </photo>

   <photo>
      <filename>./img/img07.jpg</filename>
      <phototitle>图片7</phototitle>
   </photo>

   <photo>
      <filename>./img/img08.jpg</filename>
      <phototitle>图片8</phototitle>
   </photo>

</gallery>


以上是.xml文件的代码,我把代码中的img01.jgp等改成img01.png。并且再对应的地方,把图片也换成了img01.png等图,而且图片尺寸也和之前.jpg的图片一样,可是为什么就无法显示呢?

作者: aoteman178   发布时间: 2011-08-29

//----------------------------------
如果需要继续追问,请看:

1把您出问题的文件全部放入一个文件夹,然后压缩上传。(一定要说明里面的FLA文件是哪个版本)
如果文件太大,可以分卷压缩,申明邮箱上传到里面,告诉大家登陆地址,用户名密码。也可以使用到处都有的免费网盘。
2叙述清楚,您想实现什么功能,做这个文件是想要达到什么样的效果。
3当前文件出了什么问题,为了解决这个问题,您采取了哪些方法。


当然也不是你上传了文件,就有一定会有朋友解答。这个还要看大家对你的问题是否有兴趣,有时间。
请耐心等待吧。

作者: flash023   发布时间: 2011-08-29