好吧,我有這Page,你可以看到,如果你向下滾動地圖,你會看到「巴里諾斯市場」的標誌和標題......如果你點擊閱讀更多鏈接文本擴展..這是正是我想要的。我試圖解決的問題是,當用戶點擊閱讀更多我需要在左邊的巴羅納市場圖像向下滾動文本,並下半部分....這裏是代碼...如何將圖像移動到div的一半?
<div id="barino_info">
<div id="barino_header"></div>
<div class="info_body">
<div id="barino_left_body">
</div>
<div class="right_body">
<div class="right_body_outer">
<ul class="play_navigation">
<li class="active"><a href="#" class="navlinks barino_story_bottom" ref="right_body_inner">The Story</a></li>
<li><a href="#barino_video" class="navlinks barino_video_bottom" ref="bottom_barino_video">The Video</a></li>
<li><a onclick="show_gallery('barino');" href="#" class="navlinks barino_gallery_bottom" ref="bottom_barino_gallery">The Gallery</a></li>
<li><a href="#" class="navlinks barino_equipment_bottom" ref="barino_equipment">The Equipment</a></li>
</ul>
<div class="right_body_inner tab_content">
Barino's Market is an ......
的圖像是在#barino_left_body背景網址
如何實現this..i想的是在策略的任何想法也許jQuery的偏移或類似的東西
我用這plugin到做擴大...這裏是我的jquery去做
$('.right_body_inner, .doughboy_right_body_inner, .haw_right_body_inner, .river_right_body_inner, .vib_right_body_inner, .barino_equipment, .dough_equipment, .river_equipment, .haw_equipment, .vib_equipment').expander({
slicePoint: 355, // default is 100
expandEffect: 'fadeIn',
expandSpeed: '8', // speed in milliseconds of the animation effect for expanding the text
userCollapseText: '(less..)' // default is '[collapse expanded text]'
});
你在「Read More」上使用什麼代碼來展開div? – Khez 2011-04-05 02:05:46
我更新了我的問題以回答您的問題 – Trace 2011-04-05 02:09:13
只有在展開時才需要垂直居中的背景圖像? – Khez 2011-04-05 02:09:50