hexo icon indicating copy to clipboard operation
hexo copied to clipboard

怎样用 Image_tag 实现图文的混编

Open yunfeizu opened this issue 13 years ago • 2 comments

使用octopress 的时候, image 的位置是可以在image_tag 中设置的, 而使用hexo 移植的image_tag, 这些设置失效了。 是不是因为fancy box的原因?

image

yunfeizu avatar Jun 04 '13 06:06 yunfeizu

Hexo的預設主題Light所使用的class name和Octopress不同,所以left必須寫成alignleft,right必須寫成alignright

tommy351 avatar Jun 05 '13 01:06 tommy351

多谢回复, 已经搞定了。 img 没有设边界, 图片和文字紧挨着,不太好看, 我自己在css 中改了下:

img, video
     max-width 100%
     margin-left 10px
     margin-right 10px
     margin-bottom 10px
     height auto
     border none

我不懂前端代码, 不知道tommy有没有更好的解决办法?

yunfeizu avatar Jun 06 '13 03:06 yunfeizu