我正在尝试编辑tumblr布局,以便能够以缩小的方式查看全高/宽的图像。据我所知,可以将max-width / max-height设置为100%,同时仍保留在原始容器内。
我的问题是,每当我尝试将PhotoUrl下的设置更改为预先规定的-500,-250等以外的设置时,整个图像就会变为空白。
这是编码:
{block:Photo}
<center>{block:IndexPage}{LinkOpenTag}<a href="{permalink}">
<table width="500" height="200" "border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="{PhotoURL-500}" style="background-position:center center;"> </td>
</tr>
</table>
</a>{LinkCloseTag}
{/block:IndexPage}
感谢任何可以提供帮助的人!
答案 0 :(得分:0)
这是您应该用于高分辨率图像的内容:
{PhotoURL-HighRes}
此外,您的{LinkOpenTag}
和{Permalink}
链接会遇到问题。你应该删除其中一个。 {LinkOpenTag}
实际上会呈现一个锚标记,所以在你的情况下你最终会得到这个:
<a href="/link/here"><a href="/link/here"><!-- photo stuff --></a></a>