2013-01-23 185 views
0

我目前在添加边界到我的布局上的border-radius边界时遇到问题。我尝试了一堆不同的东西,但无法让它工作。请帮帮我。我将在下面提供HTML & CSS源代码。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; 
} 
+1

什么发生,你有什么期待?是错误浏览器特定的? –

回答

0

看到此链接我希望这将有助于你jsfiddle.net/zRJUf/

0

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