css - Blogspot 模板中的 Div 对齐问题

标签 css html blogspot

如果有人可以看一下 hindilyricsall.blogspot.com,我将不胜感激并且可以找出为什么导航栏下方轮播中的下一个箭头未对齐并移至轮播下方? 相关代码:

<div id='carousel'>
<div id='previous_button'/>
<div class='container'>
<script>
document.write(&quot; &lt;script src=\&quot;/feeds/posts/default?max-results=&quot;+numposts1+&quot;&amp;orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts\&quot;&gt;&lt;\/script&gt;&quot;);
</script>   
</div>
  <div id='next_button'/>
  <div style='clear:both;'/>

</div>

CSS:

#carousel{width:100%;height:240px;position:relative;display:block;}
#carousel .container{position:relative;left:25px;margin-right:25px;width:930px;height:240px;overflow:hidden}
#carousel #previous_button{position:absolute;width:25px;height:240px;background:url(http://3.bp.blogspot.com/-SFH7pfuPOg4/UAVZimY-OuI/AAAAAAAAHqE/MOKZ4nE0EFM/s1600/prev.png) center;z-index:100;cursor:pointer;}
#carousel #next_button{position:absolute;right:0;width:25px;height:240px;background:url(http://4.bp.blogspot.com/-pFR58sZNzCo/UAVZh9I72lI/AAAAAAAAHp8/JTIiHJfsqHA/s1600/next.png) center;z-index:100;cursor:pointer;}
#carousel #next_button:hover,#carousel #previous_button:hover{filter:alpha(opacity=70);opacity:.7}
#carousel ul li:hover{background:#111}
#carousel ul{width:100000px;position:relative;margin-top:10px}
#carousel ul li{background:#272727;display:inline;float:left;text-align:center;font:12px Oswald;line-height:1.3em;width:130px;height:200px;margin:0 1px 6px 9px;padding:8px 5px 6px;border:1px solid #323232;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}
#carousel ul li a.slider_title{color:#ccc;display:block;margin-top:6px}
#carousel ul li a.slider_title:hover{color:#fec700}

最佳答案

如果您将此代码添加到您的 css 文件中

#carousel .container {
    float:left;
}

箭头将与轮播对齐

关于css - Blogspot 模板中的 Div 对齐问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20445074/

相关文章:

css - Blogspot 简单模板,居中背景

html - 停用光标悬停面包屑

css - 如何禁用点击网站免责声明

javascript - 在不同的函数中为一个函数设置变量

search - Blogger 多标签搜索

HTML - 图像未完整显示

javascript - 如何在 jquery 中将 2 个按钮合并为 1 个按钮

html - 如何组合 CSS "text-shadow"和 "background-image: -webkit-gradient"

javascript - 当我在 php 代码中回显该函数时,javascript 函数不会执行

JavaScript Youtube Search API v3 : Clear Results, 和验证函数