0

我目前无法在我的布局中添加边框和边框半径。我尝试了很多不同的东西,但无法让它发挥作用。请帮我。我将在下面提供 HTML 和 CSS 源代码。

HTML:

<div class="colmask fullpage">
    <div class="col1">
        <!-- Column 1 start -->

        ...content goes here...

        <!-- Column 1 end -->
    </div>
</div>

CSS:

/* column container */
.colmask {
  position: relative;   /* This fixes the IE7 overflow hidden bug and stops the layout jumping out of place */
  clear: both;
  float: left;
  width: 100%;          /* width of whole page */
  overflow: hidden;     /* This chops off any overhanging divs */

}
/* 1 column full page settings */
.fullpage {
  background: #fff;
}
.fullpage .col1 {
  margin: 0 1em;
}
4

1 回答 1

0

我希望这是你的追求,而不是使用边框:1px; 试试 box-shadow: 0 0 2px 0 #000000; jsfiddle.net/XYwc4/1

于 2013-01-23T05:26:54.563 回答