2008-01-15から1日間の記事一覧

サムネイルをスタイルシートで作成

CSS

サムネイルをスタイルシートで疑似的に作成する方法です。 <style type="text/css"> .thum{ width:120px; height:100px; border:1px solid red; overflow:hidden; } .thum img{ width:200px; } </style> <p class="thum"> <img src="http://moeten.info/maidcafe/image/top/maidcafe_de_go.jpg"> </p>