背景画像があります。背景画像をwidth:118px
クリックすると、jqueryを実行したいのですが、タグを使用<a>
できcursor:pointer
ません。オンのみを作成するbackground
方法と、背景のみにクラス名を付ける方法は?出来ますか?どうやって?
<div id="post1_img"></div>
#post1_img
{
width:280px;
height:33px;
background:url(../images/assets/pullTab-readMore-off-.png) no-repeat top center;
clear:both;
}
編集
続きを読むをクリックして、アクションを実行したいのですが、追加のdivを作成せずに実行できますか?
width of div:280px;
width of image:118px;