<small id='7v49g4cl'></small><noframes id='9hh294pd'>

    <tfoot id='1rqmdq5c'></tfoot>

  1. <legend id='2ulrffy7'><style id='q20ertdx'><dir id='q00rvsag'><q id='ognnnyqh'></q></dir></style></legend>
      • <bdo id='ugstgxkk'></bdo><ul id='y2zfxi17'></ul>
      <i id='crv1e75z'><tr id='lmxuxaak'><dt id='bepc1ren'><q id='1iwmsn3m'><span id='692ih84y'><b id='24l5t3ab'><form id='z3xlzbgx'><ins id='3xduflxk'></ins><ul id='6au4ei35'></ul><sub id='s6lyjutl'></sub></form><legend id='v4sofr3i'></legend><bdo id='vesn1nkl'><pre id='shyekh1t'><center id='gz9wuh2o'></center></pre></bdo></b><th id='lxml04cx'></th></span></q></dt></tr></i><div id='wak7tgys'><tfoot id='87qci77q'></tfoot><dl id='aapg8rhi'><fieldset id='tp6565x1'></fieldset></dl></div>
    1. 精准传达 • 价值共享

      洞悉互联网前沿资讯,探寻网站营销规律

      织梦文章内容图片加alt和title

      作者: 庚午网络 | 2021-01-20 04:33 |点击:

    2. <tfoot id='f0q3i9ri'></tfoot>
        <tbody id='dt6j6okq'></tbody>

          • <small id='43a2evt3'></small><noframes id='9qm8e05g'>

              <bdo id='w0o9yk3n'></bdo><ul id='nlpgxilg'></ul>

                <i id='p1ibw4h6'><tr id='umpw20uj'><dt id='rr6ojuol'><q id='16ytnbmj'><span id='rd8fme44'><b id='kfmkz2yo'><form id='g8xugsje'><ins id='08488k89'></ins><ul id='xu8fngql'></ul><sub id='im2qvscq'></sub></form><legend id='v1c1tf6q'></legend><bdo id='9wslmn83'><pre id='ks16s2wj'><center id='rdqxubpy'></center></pre></bdo></b><th id='h07f04bx'></th></span></q></dt></tr></i><div id='vahour4l'><tfoot id='yznvy0rp'></tfoot><dl id='og54w7tp'><fieldset id='5vtzoywe'></fieldset></dl></div>
              1. <legend id='5ebxvdz6'><style id='wm7vpaxo'><dir id='tpipdahg'><q id='poab90ep'></q></dir></style></legend>

                织梦文档后台添加图片默认alt=""为空,如果你想给所有的文档内容里的img alt="" title="" 补上标题,我们不需要去改程序文件,直接在标签里runphp一下

                文章内容页文章内容标签

                {dede:field.body/}


                改成
                 

                {dede:field.body runphp=yes}
                global $dsql,$id,$aid;
                $myid = isset($id) ? $id : $aid;
                $row = $dsql->GetOne("SELECT title FROM `dede_archives` WHERE id=$myid");
                $title = $row['title'];
                $str = @me;
                $search = '/(<img.*?)alt=(["\'])?.*?(?(2)\2|\s)([^>]+>)/is';
                $search1 = '/(<img.*?)title=(["\'])?.*?(?(2)\2|\s)([^>]+>)/is';
                $content = preg_replace($search,'$1$3',$str);
                $content = preg_replace($search1,'$1$3',$content);
                @me = str_replace('<img', "<img alt='{$title}' title='{$title}'", $content);
                {/dede:field.body}
                二度创作,如有侵权请联系删除。如没特殊注明,文章均为庚午网络原创,转载请注明https://www.hngengwu.com/gengwuwenku/734.html

                    <bdo id='69t1vgh7'></bdo><ul id='2qlatylu'></ul>
                1. <small id='760rlxwr'></small><noframes id='tlqqq3sw'>

                  <i id='5oyhhwqo'><tr id='lqbtau57'><dt id='b59ma962'><q id='2hj96sgh'><span id='hv9mx2nz'><b id='6rrtipde'><form id='fdrm0z2l'><ins id='x2cwewan'></ins><ul id='eg088xq4'></ul><sub id='j5bd7ssp'></sub></form><legend id='hmtf0ycf'></legend><bdo id='abh4p9h0'><pre id='6n4ptbia'><center id='8b6y1ivm'></center></pre></bdo></b><th id='uq4wpvd5'></th></span></q></dt></tr></i><div id='9h1q0vy9'><tfoot id='lg8shdda'></tfoot><dl id='c7wa7n6w'><fieldset id='fo0uexzi'></fieldset></dl></div>
                    <tfoot id='6ks93h9k'></tfoot>
                  1. <legend id='rvk16g2w'><style id='xkz1jnm6'><dir id='z0nzlec3'><q id='j0oha94p'></q></dir></style></legend>
                    多一份策划方案,总有益处。

                    请直接添加技术总监微信联系咨询

                    网站设计 品牌营销

                    多一份参考,总有益处

                    联系庚午网络,获得专属《策划方案》及报价

                    咨询相关问题或预约面谈,可以通过以下方式与我们联系

                    业务热线:18574395938 / 大客户专线:18574395938