我正在为我的数据标题值使用内联样式表。如何删除内联样式表并在类中定义它?由于该值来自 data-caption 属性,我不知道该怎么做。在下面提供我的代码:
http://jsfiddle.net/rajkumart08/8YK2n/
<div class="cubeCell" data-text="Search" class="desktopContactImage cubeCell"
data-caption="<a style='padding-left: 40px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='padding-left: 40px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='padding-left: 40px; font-size: 18px; color: grey;' >Labels</a>"
data-image="http://intra.defie.co/images/Desktop_icons_02.07.13/search.png"></div>
<div class="iphoneContactImage" data-caption="<a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >Labels</a>"
data-image="http://intra.defie.co/images/Desktop_icons_02.07.13/demoImage.png">iphoneImage</div>