首页 \ 问答 \ Twitter Bootstrap Carousel导航显示(Twitter Bootstrap Carousel Navigation Display)

Twitter Bootstrap Carousel导航显示(Twitter Bootstrap Carousel Navigation Display)

我只是为一个简单的Web应用程序测试了一些Twitter Bootstrap的东西,我遇到了Carousel的一个问题:导航按钮不像在bootstrap网站上的例子和我在网上找到的其他例子那样显示。

我已经把这个例子http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=carousel并把它放到这个小提琴里http://jsfiddle.net/a5udW/

<div class="bs-example">
<div id="myCarousel" class="carousel slide">
    <!-- Carousel indicators -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>   
    <!-- Carousel items -->
    <div class="carousel-inner">
        <div class="active item">Slide 1</div>
        <div class="item">Slide 2</div>
        <div class="item">Slide 3</div>
    </div>
    <!-- Carousel nav -->
    <a class="carousel-control left" href="#myCarousel" data-slide="prev"><</a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">></a>
</div>

与Code Lab中的示例不同,导航按钮在较大的矩形中只是普通的旧“<”和“>”。

我做错了什么noob的事情?

非常感谢。


I am just testing some Twitter Bootstrap stuff out for a simple web app and I have run into an issue with the Carousel: the navigation buttons don't display like in examples on the bootstrap site and others I have found on the web.

I have taken this example http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=carousel and put it into this fiddle http://jsfiddle.net/a5udW/

<div class="bs-example">
<div id="myCarousel" class="carousel slide">
    <!-- Carousel indicators -->
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>   
    <!-- Carousel items -->
    <div class="carousel-inner">
        <div class="active item">Slide 1</div>
        <div class="item">Slide 2</div>
        <div class="item">Slide 3</div>
    </div>
    <!-- Carousel nav -->
    <a class="carousel-control left" href="#myCarousel" data-slide="prev"><</a>
    <a class="carousel-control right" href="#myCarousel" data-slide="next">></a>
</div>

The navigation buttons are just plain old "<" and ">" in larger rectangles unlike in the example from Code Lab.

What noob thing have I done wrong?

Many thanks.


原文:https://stackoverflow.com/questions/19827361
更新时间:2024-03-19 08:03

最满意答案

auto pBytes = static_cast<BYTE *>(handle);

是错误的。 你需要使用

PBYTE pBytes = (PBYTE)GlobalLock(handle);

如果希望直接访问流式存储。 不要忘记最后调用GlobalUnlock


the

auto pBytes = static_cast<BYTE *>(handle);

is error. you need use

PBYTE pBytes = (PBYTE)GlobalLock(handle);

if want direct access to stream storage. and not forget call GlobalUnlock finally

相关问答

更多
  • 我假设矢量pixels代表矩阵中的每一行。 然后要翻转向量中的所有值,您可以像这样简单地使用std::reverse_copy : std::vector flippy; flippy.resize(pixels.size()); std::reverse_copy(pixels.begin(), pixels.end(), flippy.begin()); 您需要为每一行执行此操作。 然后,您可以在每次反转后输出每个翻转的行,以便矢量'flippy'仅表示操作中的当前行。 I assu ...
  • 此代码适用于我: #include #include #include #include "itkImage.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkRGBPixel.h" int main(int argc, char** argv) { std::string input = "/home/doriad/temp/tes ...
  • fread需要内存来放置它正在读取的数据。 在您的案例sector ,第一个参数指向该内存。 但是,您还没有初始化sector 。 您将需要分配一些内存,在这种情况下只需一个字节,并指向sector 。 例如: void *sector = malloc(1); 一如既往,在使用完毕后不要忘记释放内存。 fread needs memory into which to put the data it's reading. That memory is pointed to by the first par ...
  • 该 auto pBytes = static_cast(handle); 是错误的。 你需要使用 PBYTE pBytes = (PBYTE)GlobalLock(handle); 如果希望直接访问流式存储。 不要忘记最后调用GlobalUnlock the auto pBytes = static_cast(handle); is error. you need use PBYTE pBytes = (PBYTE)GlobalLock(handle); if wan ...
  • if((strm = opendir(dir) == NULL)) 括号嵌套错误。 它应该是: if((strm = opendir(dir)) == NULL) if((strm = opendir(dir) == NULL)) The parentheses are nested wrong. It should be: if((strm = opendir(dir)) == NULL)
  • 好吧,我仍然不知道为什么会修复它 - 但是seg错误是由我改变了在链接命令中指定目标文件的顺序引起的。 但是在使用这些函数的文件之前指定将函数指针加载到OpenGL的目标文件会使一切正常工作。 Okay, I still don't really know why this fixes it - but the seg fault was caused by me changing the order the object files were specified in the linking comman ...
  • raspberry pi通过特定于供应商的库为OpenGL ES 1.x / 2.x提供硬件支持 - 但桌面GL没有。 立即模式( glBegin/glEnd ) 从未出现在GLES中。 你必须使用顶点数组。 但是,矩阵堆栈在GLES1.x中可用。 你必须使用egl来获得一个加速的上下文。 从好的方面来说,RPi上的GL不需要X11,所以你可以直接在控制台上安装GL覆盖,非常酷。 官方RPi固件附带了hello_triangle演示,它演示了如何获得有效的上下文,源代码可以在/opt/vc/src/hell ...
  • 您需要初始化Coord::children的元素。 它们不能保证为NULL,因此在populateTree() ,当您对每个子进行空测试时,您将获得非空子项,尽管它们不会指向有效的Coord 。 当它们从队列中弹出,并且您在无效的Coord上调用getValidMoves()时,您将获得seg-fault。 将Coord构造函数更改为: Coord::Coord(int xPos, int yPos) : Loc(xPos, yPos) { std::fill( children, children ...
  • 分段错误来自多个线程同时更新pos的值,因此将其设置为某个值,将com + pos转换为指向com的已分配内存之外或之前的指针。 并行化这种循环的正确方法是将私有字符串中的值连接起来,然后以有序的方式连接私有字符串: char com[255]; int pos = 0; #pragma omp parallel { char mycom[255]; int mypos = 0; #pragma omp for schedule(static) nowait for (int i ...
  • int* num; *num = atoi(argv[0]); 取消引用未初始化的指针 - 未定义的行为。 将其更改为 int num; num = atoi(argv[0]); 要么 int *num = malloc(sizeof(int)); *num = atoi(argv[0]); int* num; *num = atoi(argv[0]); dereferencing a uninitialised pointer - undefined behaviour. Change it to ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。