【发布时间】:2013-09-24 00:45:25
【问题描述】:
所以我不是 CSS 向导或 Nivo 滑块大师。我在我的一个页面上工作,但一开始没有任何内容。但是当我尝试让它与我的 prostores 页面一起工作时,图像来了向上但滑动然后向上和向左移动并为每张幻灯片执行此操作。我认为必须有一些 CSS 需要更改.. 或其他东西.. 但由于我对 CSS 了解不多,我不知道要更改什么.. 我只是在这里保留了默认设置..
这是我测试的地方
http://www.securemycargo.com/servlet/the-template/testnivo/Page
任何指针表示赞赏
好的,这里是默认的CSS`
.theme-default .nivoSlider {
position:relative;
background:#fff url(loading.gif) no-repeat 50% 50%;
margin-bottom:10px;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}
.theme-default .nivoSlider img {
position:absolute;
top:0px;
left:0px;
display:none;
}
.theme-default .nivoSlider a {
border:0;
display:block;
}
.theme-default .nivo-controlNav {
text-align: center;
padding: 20px 0;
}
.theme-default .nivo-controlNav a {
display:inline-block;
width:22px;
height:22px;
background:url(bullets.png) no-repeat;
text-indent:-9999px;
border:0;
margin: 0 2px;
}
.theme-default .nivo-controlNav a.active {
background-position:0 -22px;
}
.theme-default .nivo-directionNav a {
display:block;
width:30px;
height:30px;
background:url(arrows.png) no-repeat;
text-indent:-9999px;
border:0;
opacity: 0;
-webkit-transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
}
.theme-default:hover .nivo-directionNav a { opacity: 1; }
.theme-default a.nivo-nextNav {
background-position:-30px 0;
right:15px;
}
.theme-default a.nivo-prevNav {
left:15px;
}
.theme-default .nivo-caption {
font-family: Helvetica, Arial, sans-serif;
}
.theme-default .nivo-caption a {
color:#fff;
border-bottom:1px dotted #fff;
}
.theme-default .nivo-caption a:hover {
color:#fff;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled {
width: 100%;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled a {
width: auto;
height: auto;
background: none;
margin-bottom: 5px;
}
.theme-default .nivo-controlNav.nivo-thumbs-enabled img {
display: block;
width: 120px;
height: auto;
}`
然后我取出表格条目.. 做同样的事情..我想我需要其中一个 CSS 条目要修改?
【问题讨论】:
-
正如问题编辑器可能告诉您的那样,您需要展示一些代码。
-
是否有必要使用表格进行布局?多年来,这一直被认为是不好的做法。
标签: javascript css nivo-slider