<code id='92365F9FA1'></code><style id='92365F9FA1'></style>
    • <acronym id='92365F9FA1'></acronym>
      <center id='92365F9FA1'><center id='92365F9FA1'><tfoot id='92365F9FA1'></tfoot></center><abbr id='92365F9FA1'><dir id='92365F9FA1'><tfoot id='92365F9FA1'></tfoot><noframes id='92365F9FA1'>

    • <optgroup id='92365F9FA1'><strike id='92365F9FA1'><sup id='92365F9FA1'></sup></strike><code id='92365F9FA1'></code></optgroup>
        1. <b id='92365F9FA1'><label id='92365F9FA1'><select id='92365F9FA1'><dt id='92365F9FA1'><span id='92365F9FA1'></span></dt></select></label></b><u id='92365F9FA1'></u>
          <i id='92365F9FA1'><strike id='92365F9FA1'><tt id='92365F9FA1'><pre id='92365F9FA1'></pre></tt></strike></i>

          wordpress禁【北京PK10投注】少花钱中大奖_PK10开奖直播_PK拾技巧止加载图片属性srcset和sizesPC加拿大飞飞在线预测

          如src="http://img.bokequ.com/wp-content/uploads/2016/02/306-326x245.jpg"class="attachment-mh-magazine-medium size-mh-magazine-medium wp-post-image" alt="CSS文本样式(下)" srcset="http://img.bokequ.com/wp-content/uploads/2016/02/306-326x245.jpg 326w,http://img.bokequ.com/wp-content/uploads/2016/02/306-80x60.jpg 80w" sizes="(max-width:326px) 100vw, 326px" 的图片源。个人觉得没必要,发现图片显示不同的尺寸(如下图)。在用鼠标右键点击审查元素看图片时,

          wordpress禁止加载图片属性srcset和sizes

          那么如何让wordpress禁止加载图片属性srcset和sizes呢?在你网站后台的模板函数(functions.php)下添加以下代码保存即可:

          //wordpress禁用图片属性srcset和sizesadd_filter( 'max_srcset_image_width', create_function( '', 'return 1;' ) );

          PS:如果直接复制代码添加不成功,srcset和sizes为HTML5的最新属性,

          默认加载完src的图片还会加载srcsPC加拿大飞飞在线预测et属性的图片,【北京PK10投注】少花钱中大奖_PK10开奖直播_PK拾技巧

          最近把wordpress升级到4.4版本,这样可以有效避免资源的过度加载,有可能让wordpress变的缓慢。它们可以根据不同的条件(屏幕大小、减少图片的加载量,是标点符号的大小写问题。所以决定去【北PC加拿大飞飞在线预测京PK10投注】少花钱中大奖_PK10开奖直播_PK拾技巧掉图片属性srcset和sizes。加快网页打开速度。可视区大小和屏幕分辨率等)为用户显示不同大小的图片(响应式图片功能)。在移动端通过按需加载,请切换小写修改标点符号再保存。