質問

EasySlider 1.7を使用してスライダーで素敵なオーバーレイ効果を得ようとしています。これにはイメージを含めるだけでなく、画像を表すテキストもあります。今私はそれが必要なページ上のテキストを裏打ちするのに問題があります。

http://intranet.StreamFlame.com

ホームページ、メインスクロール画像のブラックオーバーレイが表示されているセクションは、テキストが座っていると思われる場所です。今すぐコードをスクロールするためにコードを取り除くと、テキストはそれが想定されているところにあります。ただし、テキストを同時にスクロールするためにスクリプトを追加するとすぐに、テキストが消えているようです。

これが私のコードです。
HTML:

<div class="filler">
   <div class="filler-picture">
   <div class="filler-img">
   <ul>{% for project in rotations %}
        <li><img src="{% thumbnail project.key_image.get_absolute_url 559x361 crop,upscale %}" width="559" height="361" alt="{{ project.title }}" /></li>
     {% endfor %}
 </ul>
</div>
<div class="filler-mask">
 <img src="{{ MEDIA_URL }}img/filler.png"  alt="filler" />
</div>
<div class="filler-text">
 <ul>
 <li>
  <span class="filler-text-left">WaterTiger</span>
     <span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>
 </li>
 <li>
  <span class="filler-text-left">Dragonfly</span>
     <span class="filler-text-right">Project Dragonfly is a test project whilst we get all the site together, call it a filler if you must, there is no project dragonfly your only dreaming.</span>
 </li>
 <li>
  <span class="filler-text-left">Spacemunch</span>
     <span class="filler-text-right">Project Spacemunch is a test project whilst we get all the site together, call it a filler if you must, there is no project Spacemunch your only dreaming.</span>
 </li>
</ul>
.

css:

.filler {

     position: relative;
      margin-left:20px;
      height:361px;
      width:559px;
      float:left;

}

.filler-mask {
    position: absolute;
    left:0; top:0;
    height:361px;
    width:559px;
    z-index: 100;
}

.filler-img{
    position: absolute;
    left:0; top:0;
    height:361px;
    width:559px;
    z-index: 50;

}

.filler-text {

      width: 558px;
      height: 68px;
      position: absolute;
      z-index: 200;
      color: #fff;

}

.filler-text li {

      list-style-type: none;
      z-index: 1000;

}

.filler-text-left {

      width: 169px;
      float: left;
      height: 48px;
      padding: 10px;
      font-size: 18pt;
      font-weight: 100;

}
.filler-text-right {

          width: 340px;
      float: right;
      height: 48px;
      padding: 10px;
      font-size: 10pt;
}
.

EasySlider JavaScript:

<script type="text/javascript">
       $(document).ready(function(){ 
        $(".filler-text").easySlider({
         auto: true,
         continuous: true,
         speed: 1800,
         pause: 5000,
         nextId: "next2",
         prevId: "prev2"
        });
        $(".filler-img").easySlider({
         auto: true,
         continuous: true,
         speed: 1800,
         pause: 5000,
         nextId: "next2",
         prevId: "prev2"
        });

       });
</script>
.

注:イメージのスクリプトの下のテキストのスクリプトをプットしようとしましたが、これはその外観に変更はありません。
誰かが助けることができることを願っています。

役に立ちましたか?

解決

フィラーテキストへのスライダ効果の追加jQueryによってそのプロパティを設定します

フィラーテキストの中のあなたのLiの結果は、その高さを採用していません。そのため、最初の解決策は、前もって拡張モードまたはシンプルでクリアフィックスを追加して、LIを高さにすることです。

<div style="clear: both;"></div>
.

の後
<span class="filler-text-left">WaterTiger</span>
<span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>
.

そのように見えます:

<span class="filler-text-left">WaterTiger</span>
<span class="filler-text-right">Project watertiger is a test project whilst we get all the site together, call it a filler if you must, there is no project watertiger your only dreaming.</span>
<div style="clear: both;"></div>
.

そして最後にあなたのフィラーの上の位置を管理します - テキスト

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top