CSS Bootstrap - 删除边距

时间:2017-05-14 20:58:49

标签: css asp.net twitter-bootstrap

提前谢谢

我正在开发一个带有图像和gridview的.NET响应式网页。

我正在尝试删除" margin-left:auto"在" grid.less"中定义的属性bootstrap文件没有成功。 我已经尝试过" margin-left:0px",left:0px,也没有成功。 我的页面是这样的: Page (sorry but i can't put the image in the post)

ASP.NET:

<div class="wrapper">
    <div class="global">
        <div class="itemwrapper">
            <img src="Content/logo.jpg" class="img-responsive"  />
        </div>
  (...)

CSS:

.wrapper {
   max-width: 1050px;
   margin: 60px auto 60px auto;
  }
.global {
   display: table;
   width: 100%;
   table-layout: fixed;
  }
.itemwrapper {
  margin-left:0px;
  display: table-cell;
  vertical-align: top;
  width: 100%;
 }
你能帮帮我吗?谢谢!

1 个答案:

答案 0 :(得分:0)

只使用您提供的代码,我认为您可以尝试使用此代码:

.wrapper {
   max-width: 1050px;
   margin: 60px 0;
 }

而不是:

.wrapper {
   max-width: 1050px;
   margin: 60px auto 60px auto;
 }