调整缩略图博客s72分辨率

时间:2016-07-13 18:00:32

标签: html blogger

这是我的HTML代码小工具,我想将我的缩略图分辨率从S72-C更改为S320。

    <style>
/* CSS Recent Post Gallery */
.recent-gallery {padding:0;clear:both;}
.recent-gallery:after {content:&quot;&quot;;display:table;clear:both;}
.recent-gallery .gallerytem{display:inline-block;position:relative;margin:6px 6px;overflow:hidden;}
.recent-gallery .gallerytem a{position:relative;float:left;margin:0 6px;text-decoration:none}
.recent-gallery .gallerytem .ptitle{background:rgba(0,0,0,.7);display:block;clear:left;font-size:27px;line-height:1.3em;position:absolute;text-align:left;bottom:3px;left:3px;right:3px;top:3px;color:#fff;padding:5px;word-wrap:break-word;overflow:hidden;visibility:hidden;opacity:0;backface-visibility:hidden;transition:all .2s}
.recent-gallery .gallerytem:hover .ptitle{visibility:visible;opacity:1}
.recent-gallery a img{background:#fdfdfd;float:left;padding:2px;border:1px solid #e3e3e3;transition:all .3s}
.recent-gallery a:hover img {border-color:#bbb;}
</style>
<script type='text/javascript'>
//<![CDATA[
// Recent Post Gallery
function arlinagrid(a){for(var t=a.feed.entry||[],e=['<div class="recent-gallery">'],i=0;i<t.length;++i){for(var l=t[i],r=l.title.$t,n=l.media$thumbnail?l.media$thumbnail.url:"http://2.bp.blogspot.com/-4fCf53FqYKM/Vccsy7apoZI/AAAAAAAAK4o/XJkv3RkC0pw/s1600/default%2Bimage.png",s=n.replace("s210","s"+arlina_thumbs+""),h=l.link||[],c=0;c<h.length&&"alternate"!=h[c].rel;++c);var d=h[c].href,m='<img src="'+s+'" width="'+arlina_thumbs+'" height="'+arlina_thumbs+'"/>',p=arlina_title?'<span class="ptitle">'+r+"</span>":"",g='<a href="'+d+'" target="_blank" title="'+r+'">'+m+p+"</a>";e.push('<div class="gallerytem">',g,"</div>")}e.push("</div>"),document.write(e.join(""))}
//]]>



</script>
<script>

var arlina_thumbs = 210; 
var arlina_title = true; 

</script>
<script src='BLOGURL/feeds/posts/summary?max-results=12&amp;alt=json-in-script&amp;callback=arlinagrid'/>


</div></div>

1 个答案:

答案 0 :(得分:0)

替换以下行 -

s=n.replace("s210","s"+arlina_thumbs+"")

s=n.replace("s72-c","s"+arlina_thumbs+"")

并将变量arlina_thumbs的值更改为320

目前,您的脚本无法更改图片尺寸,因为缩略图图片中不包含s210s72-c