[Inset Border Effectライブラリ] 画像の内側に枠を表示する

説明

Inset Border Effectライブラリで画像の内側に枠を表示するには、枠を表示したい画像を$()で指定してinsetBorder()メソッドを実行します。

サンプルプログラム

【HTML】
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.insetBorderEffect.js"></script>
<script type="text/javascript" src="js/sample.js"></script>
</head>
<body>
<h1>InserBorderEffectサンプル</h1>
<div>
<img src="images/1.jpg" class="photo" width="192" height="108">
<img src="images/2.jpg" class="photo" width="192" height="108">
<img src="images/3.jpg" class="photo" width="192" height="108">
<img src="images/4.jpg" class="photo" width="192" height="108">
</div>
</body>
</html>


【sample.js】
$(function() {
$(".photo").insetBorder();
});
サンプルを実行
[戻る]