Yes, your are right, Matteo. If I use

return """
<!DOCTYPE html>
<html>
  <body>
        <img src='./static/Image1.png'>
        <img src='./static/Image2.png'>
        <img src='./static/Image3.png'>
  <body>
</html>
"""



instead, I could get correct result in Chrome as well. Thank you so much 
for your help!

Best Regards,
-Yongzhi

On Saturday, April 11, 2015 at 5:49:03 AM UTC-7, Matteo Landi wrote:
>
> Maybe because the returned document is not a _complete_ HTML document (not 
> html, no body, and so forth..)?  Try returning a valid HTML document and 
> tell us how it goes.
>
> Ciao,
> Matteo
>
> On Fri, Apr 10, 2015 at 6:43 PM, <[email protected] <javascript:>> 
> wrote:
>
>> Hello all,
>>
>> I figured out that we could use *return <img src="./static/1.png"> <img 
>> src="./static/2.png"> <img src="./static/3.png">* in GET to display 
>> three images in the order, where 1.png-3.png are stored in /static 
>> directory. I suddenly realized that this trick work for both Firefox & IE 
>> but not for Chrome. Chrome will print out "*<img src="./static/1.png"> 
>> <img src="./static/2.png"> <img src="./static/3.png">*"string on the 
>> page instead of displaying them. Why Chrome has this result? What is the 
>> correct way to show several images in Chrome browser? Thanks a lot.
>>
>> Best Regards,
>> -Yongzhi
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "web.py" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> Visit this group at http://groups.google.com/group/webpy.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to