phpthumb - html / xhtml验证问题 [英] phpthumb - html/xhtml validation problem

查看:72
本文介绍了phpthumb - html / xhtml验证问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用phpthumb演示中给出的

命令,如何让我的网页验证XHTML严格:


< img src =" ../ phpThumb.php?src = images / disk.jpg& w = 200">


这给出了验证错误,因为我不允许' 'w''或其他

参数。


我想知道是否有可能做这样的事情(裸露在我身边)


$ thisThumb = phpThumb(src = images / disk.jpg& w = 200);

echo''< img src ="''。$ thisThumb。'' > ;;


但是我不确定变量将包含什么,我理想地想要

创建缩略图并且结果是字符串指向所述缩略图的

位置。


我已经检查了谷歌,但似乎没有使用
phpthumb并验证html。 (我错过了什么):)


提前感谢任何回复。 (ps请保留主题)。

How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I''m not allowed the ''w'' or other
parameters.

I wondered if it was possible to do something like this (bare with me)

$thisThumb = phpThumb(src=images/disk.jpg&w=200);
echo ''<img src="''.$thisThumb.''">;

But I am unsure of what the variable will contain, I ideally want to
create the thumbnail and for the result to be a string pointing to the
location of said thumbnail.

I''ve checked google but there doesn''t seem to be any issues with using
phpthumb and validating html. (Am I missing something) :)

Thanks in advance for any replies. (p.s. please keep in on topic).

推荐答案

thisThumb = phpThumb(src = images / disk.jpg& w = 200) ;

echo''< img src ="''。
thisThumb = phpThumb(src=images/disk.jpg&w=200);
echo ''<img src="''.


thisThumb。''"> ;;


但是我不确定变量将包含什么,我理想地想要

创建缩略图并且结果是指向

位置的字符串缩略图。


我已经检查了谷歌但是使用

phpthumb和验证html似乎没有任何问题。 (我错过了什么):)


提前感谢任何回复。 (ps请保留主题)。

thisThumb.''">;

But I am unsure of what the variable will contain, I ideally want to
create the thumbnail and for the result to be a string pointing to the
location of said thumbnail.

I''ve checked google but there doesn''t seem to be any issues with using
phpthumb and validating html. (Am I missing something) :)

Thanks in advance for any replies. (p.s. please keep in on topic).


pe *******@gmail.com 在新闻中写道:1155652970.767956.93180

@ i42g2000cwa.googlegroups.com:
pe*******@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:

如果我使用phpthumb演示中给出的

命令,如何让我的网页验证XHTML严格:


< img src =" ../ phpThumb.php?src = images / disk.jpg& w = 200">


这给出了验证错误,因为我不允许' 'w''或其他

参数。
How can I get my webpage to validate to XHTML strict if I am using the
commands as given in the phpthumb demo:

<img src="../phpThumb.php?src=images/disk.jpg&w=200">

This gives validation errors as I''m not allowed the ''w'' or other
parameters.



验证错误是因为&符号。


使用:< img src =" ../ phpThumb .php?src = images / disk.jpg& amp; w = 200">


(如果是XHTML,请使用< img src =" ../ phpThumb。 php?src = images / disk.jpg& amp; w =

200" />


您还需要提供alt属性也可以通过验证。


-

Karl Groves
www.karlcore.com


这篇关于phpthumb - html / xhtml验证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆