-
Notifications
You must be signed in to change notification settings - Fork 0
hatena_foto.rb
TADA Tadashi edited this page Nov 10, 2017
·
2 revisions
Hatena::Fotolife の個別の画像ページへサムネイル付きでリンクする。
<%=hatena_foto 'http://f.hatena.ne.jp/s_sawada/20050223111123' %>
<%=hatena_foto 'url' %>
- url: リンク先のURL
[セキュア可]
サムネイル画像には "foto_thumb" というクラス属性が付加されています。
CSSの記述例(サムネイル画像を黒枠で囲む):
.foto_thumb {
border-color: #000;
border-style: solid;
border-width: 1px;
}