我目前使用此CSS来使我的博客图像适合我的博客区域和博客文章的确切宽度。我不确定这是不是最好的解决方案,因为我偶尔会遇到图像移动到右侧的问题。使博客图像适合博客文章区域
.post-body img {
width: 761px!important;
height: auto!important;
padding: 0 !important;
border: none !important;
background: none !important;
}
有没有更好的方法来做到这一点?在此先感谢:)
可以添加你的HTML代码也还是简单地把它在jsfiddle或codepen –
做一个https://jsfiddle.net/9179mpa0/ –