简体   繁体   English

如何使CSS滑块工作

[英]How to make a CSS slider work

I have tried for the life of me to get this darn slider to work on this site I am making and I can't figure out what I am doing wrong. 我一直在努力使该织补滑块在我正在制作的网站上正常工作,但我无法弄清楚自己在做什么错。 Once I add in the code for the slider (the news story slider at the top of the page) it seems to be pushing the rest of the site out of wack. 一旦添加了滑块的代码(页面顶部的新闻报道滑块),似乎就使网站的其余部分毫无用处了。

If there are any CSS guys out there that can help. 如果有CSS专家可以提供帮助。 I know its just something small that I am missing but I am at hat point where I cant see it anymore. 我知道我所缺少的只是一点点,但是我已经无法再看到它了。

The site to look at is http://www.ebusinessmanager.ca/ 要查看的网站是http://www.ebusinessmanager.ca/

If I had to guess, I would say you have an unclosed tag somewhere. 如果我不得不猜测,我会说你在某个地方有一个未封闭的标签。 The W3C Validator check seems to confirm this. W3C验证程序检查似乎可以确认这一点。 Try making the page valid first, then see whether there still are any problems. 首先尝试使页面有效,然后查看是否仍然存在任何问题。

It's because you set the #content-box at width: 100%. 这是因为您将#content-box设置为width:100%。 Your sidebar has no place left. 您的侧边栏没有位置了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM