猫头鹰旋转木马没有响应

时间:2015-11-24 06:58:18

标签: jquery owl-carousel

我实施了Owl轮播代码,它工作正常,但我坚持使用猫头鹰响应功能。它根本不起作用。

HTML代码是:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct data {
    unsigned char a[16];
    char b[20];
} data;

int main(int argc, char **argv){

    FILE *f = fopen (argv[1], "rb");
    data e = { .a = {0}, .b = {0} };
    long int size = 0;

    if (!f) {
        fprintf (stderr, "error: file open failed '%s'.\n", argv[1]);
        return 1;
    }

    if (fseek (f, 0, SEEK_END)) {
        fprintf (stderr, "error: fseek SEEK_END failed\n.");
        return 1;    
    }
    if ((size = ftell (f)) == -1){
        fprintf (stderr, "error: ftell failed to return size of file\n.");
        return 1;    
    }

    rewind (f);

    if ((unsigned long)size < 35929 * sizeof e) {
        fprintf (stderr, "error: offset exceeds file size '%ld'\n.", size);
        return 1;    
    }

    if (fseek (f, 35929 * sizeof e, SEEK_SET)) {
        fprintf (stderr, "error: fseek SEEK_SET failed\n.");
        return 1;    
    }

    if (!fread (&e, sizeof e, 1, f)) {
        fprintf (stderr, "error: fread failed to read data into 'e'\n.");
        return 1;    
    }

    printf("%s\n", e.a);

    fclose (f);

    return 0;
}

css代码:

<div id="prd-slider" class="col-md-12" > 
       <!-- Item 1 Start -->
  <div class="item">
    <div class="Shop-Choice-sub-sec">
      <div class="Shop-Choice-border"><a href=""> <img src="http://outsource.lightspeedwl.com/marketplace/media/catalog/category/new-img-3.png" style="padding: 10px; width: 59%; margin-left: 26px;"></a> </div>
      <div class="Shop-Choice-text-section">
        <div class="col-lg-12 Shop-Choice-name">Tshirts</div>
        <div class="col-lg-12 Shop-Choice-star-img"> <img style="" src="http://outsource.lightspeedwl.com/marketplace/skin/frontend/default/emarketplace/images/star-img.png"> </div>
        <span class="Shop-Choice-prise"></span> </div>
    </div>
  </div>
     <!-- Item 1 end -->
 <!-- Same structure for other items -->
</div>

Java脚本代码是:

 #prd-slider .item{
    background: #fff;
    padding: 5px 0px;
    margin: 5px;
    color: #FFF;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-align: center;
  }

任何想法我错误的地方......?

1 个答案:

答案 0 :(得分:0)

我得到了解决方案,只发布版本。我使用2.0(新版本),但猫头鹰响应不起作用。现在当我用1.3替换它然后它工作。