css - 如何将这个 div 归零?

标签 css

我想将这个“.wrapper wf”类归零。 (比如 header 和 .p)但是我不能成功,你能帮我弄清楚吗?

here is the fiddle

.wf{
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}




#products.list .img_wrapper{
    display: inline-block;
    width: 177px;
    height: 95px;
    vertical-align: top;
    margin-right: 30px;
}

最佳答案

这与对齐无关,<ul>默认有一个填充,所以你需要删除那个填充,将这个样式添加到你的 CSS 中:

ul{
    padding:0;
}

DEMO

关于css - 如何将这个 div 归零?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20296776/

相关文章:

css - 试图使用@media 来隐藏打印按钮

包含链接的 CSS 样式列表

html - 如何在容器内的 div 中居中放置 div?

jquery - 避免使用 jQuery 突出显示所有行和列

javascript - 如何通过单击按钮使 html 文档出现在另一个 html 文档中,并对其进行样式设置

css - 简单的 css3 flex 布局垂直 - 不交叉

html - 如何将文本移到左侧?

html - 如何让视频有 Angular

html - css中如何正确使用@media

html - 如何正确地将跨度集中在按钮内?