帝国wap内容模板里过滤掉图片尺寸的方法
在帝国WAP模版的show.temp.php文件里面,输出新闻正文的标签为<?=DoWapRepNewstext($r[newstext])?>想把把里面图片的style 尺寸标签给过滤掉,不然手机浏览图片宽与高严重比率失真。下面提供帝国wap内容模板里过滤掉图片……
在帝国WAP模版的show.temp.php文件里面,输出新闻正文的标签为
<?=DoWapRepNewstext($r[newstext])?>
想把把里面图片的style 尺寸标签给过滤掉,不然手机浏览图片宽与高严重比率失真。
下面提供帝国wap内容模板里过滤掉图片尺寸的方法
<?$xstyle=DoWapRepNewstext($r[newstext]);$xstyle=preg_replace('/style=.+?['|"]/i','',$xstyle);echo $xstyle;?>
- 上一篇
帝国CMS安装时出现You have an error in your SQL syntax错误代码的解决方法
帝国CMS安装时出现以下错误代码You have an error in your SQL syntax; check the manual that corresponds to your MariaDB ser
- 下一篇
帝国cms多表查询+多表标题链接的调用
多表查询+多表标题链接的调用[e:loop={ "select a.*,b.gsjc from phome_ecms_news a LEFT JOIN phome_ecms_gssj b on a.gsid=b.id where a.classid in (8) order by a.newstime desc limit 1",5,24,0}]以上A为第一个