cycle.js を使用していますが、サイトはレスポンシブです。
大きな画像(フルスクリーンバージョンに十分な大きさ)を使用max-width:100%
してから、画像を使用して画面サイズに基づいて幅を縮小できるようにしたいと思います。
問題はcycle.js
、画像のサイズに基づいてインライン スタイルでオーバーライドすることです。その場合800x600
、含まれている div の幅が 100px か 1000px かに関係なく、常にそのサイズで表示されます
コード:
<div id="rightCol">
<div class="slideshow">
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
<img src="http://4.bp.blogspot.com/-PGEqrdJBKmc/T_xe7hoz0yI/AAAAAAAAA0w/vKDMnf-5p7o/s1600/cat+5.jpg" />
</div>
</div>
右列{
width:72.5%;
float:right;
}
スライドショー {
width:100%
}
スライドショー画像{
max-width:100%;
}