在 Highslide JS 中的标题中使用引号
Using Quotations Marks in a title in Highslide JS
我正在使用Highslide作为我网站的图片查看器,并希望能够在标题中的某些文本中使用引号。当只是将相关文本放入引号中时,所有超出第一个引号的文本都丢失了。希望对此事有所帮助 - 以下示例:
<a class='highslide' href='../g94/18.jpg'
title="If I put text here and want "This piece in quotation marks" to make it stand out"
onclick="return hs.expand(this, miniGalleryOptions1)">
<img src='../g94/s18.jpg' alt=''/></a>
结果是 - 如果我把文本放在这里并想要
或;
<a class='highslide' href='../g94/18.jpg'
title="If I put text here and want '"This piece in quotation marks'" to make it stand out"
onclick="return hs.expand(this, miniGalleryOptions1)">
<img src='../g94/s18.jpg' alt=''/></a>
结果是 - 如果我把文本放在这里并想要 ''
谢谢约翰
最简单的解决方法是对 title 属性使用单引号:
title='If I put text here and want "This piece in quotation marks" to make it stand out'
相关文章:
- 可以't让我的if语句处理js中的html表单输入
- 使用agility.js进行页面布局和合成
- 使用Clipboard.js复制span文本
- 使用JS如何动态更改显示的html文件中的文本背景颜色
- 强制模板刷新ember.js
- 如何编写HTML输入的JS内联
- Angular JS IE9 Hashbang url rewriting
- 使用JS将数组转换为json对象
- Node.js v6.2.0类扩展不是函数错误
- 当js函数's已执行
- 要求未定义JS回调参数
- 在自定义mean.io包中使用angular-chart.js作为依赖项
- 无法在数据endVal中设置值=“”;{{ucount}}”;使用Angular JS的CountUp
- 如何从Java/scala调用js美化程序
- 如何更改<svg>标记为<img>用js标记
- 如何使用 node.js 比较两个 json 数组
- chrome扩展:尽管运行了at:documentidle,js脚本还是过早启动
- 节点Js:How to catch a“;没有这样的文件或目录“;读取线模块出错
- 在 Highslide JS 中的标题中使用引号
- Highslide JS:问题自动加载