改为:

width和height的值是变动的,如果width < 805, 那么width和height的值都不需要改变。
如果width > 805
那么height = height * 805 /width ;
width= 805
这个正则加判断怎么写啊?最近用到好多正则,怎么样才能把正则学好呢?
------解决方案--------------------
请说明你的规则
https://www.gxlcms.com/Documents/medies/ESIL_xiaoshengqi1.gif
这个乍来的
Image:ESIL_xiaoshengqi1.gif 这个呢?
width="550" height=" 400" 这个呢???上面有两个,需要哪个?
------解决方案--------------------
参考一下:
- PHP code
$s=<<
html;
$r= preg_replace('#.+