<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我是 CSS 新手,正在尝试写博客。我想不出一个问题。
我有一个代码可以获取帖子中的图片、标题和描述并显示在主页中。
但是,我只想要覆盖所有盒子的图片,除此之外别无其他。没有主题,没有解释。 我怎样才能做到这一点?我是新手,我真的找不到重要的部分在哪里,所以我给你完整的代码。
这是我的博客 http://www.alphabitrage.com/
这是完整代码 https://gist.github.com/anonymous/449db483824c113e283b
在@Pham Mim Tim 的回答之后:
在我的代码中,这不是很整洁,您提到的部分是这样的:
<div class='post hentry uncustomized-post-template simpleCart_shelfItem'>
<a expr:name='data:post.id'/>
<b:if cond='data:blog.pageType == "static_page"'>
<b:if cond='data:post.title'>
<h3 class='post-title entry-title'>
<b:if cond='data:post.link'>
<a expr:href='data:post.link'>
<data:post.title/>
</a>
<b:else/>
<b:if cond='data:post.url'>
<a expr:href='data:post.url'>
<data:post.title/>
</a>
<b:else/>
<data:post.title/>
</b:if>
</b:if>
</h3>
</b:if>
</b:if>
<div class='post-header-line-1'/>
<a expr:href='data:post.url'>
<div class='post-body entry-content'>
<b:if cond='data:blog.pageType != "static_page"'>
<div class='simpleCart_shelfItem'>
<div class='item_name'>
<data:post.title/>
</div>
我真的是新手,找不到放在哪里。
最佳答案
我能想到的就是把图片的宽高都设置成100%,把不要的都去掉
关于html - 博客上的CSS图片展示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31931715/