0
スライドショーの要件には軌道を使用していますが、キャプションを追加することはできません。hamlを使用したスライドショー用のzurb orbitプラグインでキャプションを表示
ドキュメントは言うこの: - :私は多くのことを試してみました:data-caption
ような構文を与えることができないので、
.container
.row
.two.columns
=render "left_navigation"
.ten.columns.destination_tabs
.contianer
.row
.ten.columns
%h3 Featured Destination
%hr
-if @preferred.blank?
%h5 No Featured destinations currently
-else
#featured
[email protected] do |destination|
-destination.destination_photos.each do |photo|
=image_tag(photo.picture.thumb_large.url, :alt =>"html captions", :data-caption => "#htmlCaption")
.orbit-caption#htmlCaption
="sfsdf"
これは明らかに誤りが与える - 私はHAMLを使用して、このような何かをやっている
<div id="featured">
<img src="overflow.jpg" alt="Overflow: Hidden No More" />
<img src="captions.jpg" alt="HTML Captions" data-caption="#htmlCaption" />
<img src="features.jpg" alt="and more features" />
</div>
<!-- Captions for Orbit -->
<span class="orbit-caption" id="htmlCaption">I'm A Badass Caption</span>
ものの、それはすぐにそれを得ることができなかった誰も助けることができますか?
ん ':「データ・キャプション」=>「#htmlCaption」'作業(すなわち、シンボルを引用)? – matt
それは動作します:)ありがとう私はそれを受け入れることができるようにあなたの公式の答えとしてこれを含めてください –