我正在使用内联样式表作为我的数据标题值。如何删除内联样式表并在类中定义它?由于该值来自数据标题属性,我不知道该怎么做。下面提供我的代码:从数据标题中删除内联样式表
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>
请尝试使用适当的标点符号。使用像这样的所有这些点.......使您的帖子非常*难以阅读。 – 2013-03-01 01:42:18
@AndrewBarber好吧谢谢 – user2045025 2013-03-01 01:44:26