不用修改程序内核文件,不影响电脑站和手机站文章内容页的文章内容输出,增加个自定义方法来解决织梦MIP文章内容页图片适配百度MIP规范
操作步骤
- <img 替换成 <mip-img
- width|height 去除图片宽高
- style 去除内联样式
- /uploads/ 相对路径图片路径替换成绝对路径
打开 /include/extend.func.php 在最下面加入个方法
内容页模板标签写法
{dede:field.body function=mip(@me)/}
不用修改程序内核文件,不影响电脑站和手机站文章内容页的文章内容输出,增加个自定义方法来解决织梦MIP文章内容页图片适配百度MIP规范
{dede:field.body function=mip(@me)/}
标签:
[db:标签]免责声明:
本站提供的资源,都来自网络,版权争议与本站无关,所有内容及软件的文章仅限用于学习和研究目的。不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,我们不保证内容的长久可用性,通过使用本站内容随之而来的风险与本站无关,您必须在下载后的24个小时之内,从您的电脑/手机中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。侵删请致信E-mail: 123456@qq.com