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
最满意答案
该
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
相关问答
更多-
来自hflip的Segfault(Segfault from hflip)[2023-06-07]
我假设矢量pixels代表矩阵中的每一行。 然后要翻转向量中的所有值,您可以像这样简单地使用std::reverse_copy : std::vectorflippy; flippy.resize(pixels.size()); std::reverse_copy(pixels.begin(), pixels.end(), flippy.begin()); 您需要为每一行执行此操作。 然后,您可以在每次反转后输出每个翻转的行,以便矢量'flippy'仅表示操作中的当前行。 I assu ... -
返回0后的Segfault;(Segfault after the return 0;)[2019-11-25]
此代码适用于我: #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 segfault?(Why does fread segfault?)[2022-06-10]
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 ... -
Segfault与readdir()(Segfault with readdir())[2022-09-13]
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) -
关于glBlendFunc的Segfault(Segfault on glBlendFunc)[2022-03-09]
好吧,我仍然不知道为什么会修复它 - 但是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 ... -
与glPopMatrix的Segfault(Segfault with glPopMatrix)[2023-06-21]
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 ... -
使用*这时的Segfault(Segfault when using *this)[2023-05-26]
您需要初始化Coord::children的元素。 它们不能保证为NULL,因此在populateTree() ,当您对每个子进行空测试时,您将获得非空子项,尽管它们不会指向有效的Coord 。 当它们从队列中弹出,并且您在无效的Coord上调用getValidMoves()时,您将获得seg-fault。 将Coord构造函数更改为: Coord::Coord(int xPos, int yPos) : Loc(xPos, yPos) { std::fill( children, children ... -
OpenMP Segfault(OpenMP Segfault)[2022-11-15]
分段错误来自多个线程同时更新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 ... -
来自atoi的Segfault(Segfault from atoi)[2024-01-09]
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 ...