【发布时间】:2018-07-07 23:27:48
【问题描述】:
我有这个 HTML:
<a href="http://waterfordwhispersnews.com/2017/01/19/im-the-only-one-creating-jobs-around-here-local-drug-dealer-slams-government/#FB-Comments" class="link-preview" target="_blank" rel="nofollow">
<div class="link-area">
<div class="og-image">
<a href="http://waterfordwhispersnews.com/wp-content/uploads/2017/01/grater.jpg" title="" class="fancybox" rel="article0">
<img src="http://waterfordwhispersnews.com/wp-content/uploads/2017/01/grater.jpg">
</a>
</div>
<div class="descriptions">
<div class="og-title">
“I’m The Only One Creating Jobs Around Here” Local Drug Dealer Slams Government
</div>
<div class="og-description">
WATERFORD drug dealer Richie 'The Grater' Harrington has today slammed the Irish government for ignoring the young people in his council est…
</div>
</div>
</div>
</a>
看起来像这样:
我想添加 CSS 使它看起来更像 Facebook 帖子,但我不知道从哪里开始。
这个想法是新闻帖子的预览,我将在讨论它的博客帖子中链接。这是我用来生成它的 hexo 插件。 https://github.com/minamo173/hexo-tag-link-preview
至少,它需要被装箱。到目前为止,它只是继承了典型帖子的链接和图像的样式。
【问题讨论】:
标签: javascript html css hexo