相关疑难解决方法(0)

在CSS中反转圆角?

我有一个css代码:

-moz-border-radius-topleft:50px;
Run Code Online (Sandbox Code Playgroud)

我得到了结果:

圆角

有没有可能这样给出:

倒圆角

css svg border css3 css-shapes

28
推荐指数
7
解决办法
4万
查看次数

将内角弯曲边框添加到活动菜单

我正在尝试为活动/选定菜单创建内部弯曲边框.下面的代码片段是我能做的最好的,方角不应该是可见的.谷歌的解决方案似乎没有帮助...请帮我玩它.多谢你们!

骗子在这里.

body {
  background:#eee;width:90%;margin:20px auto
}
ul {
  margin: 0;
  padding: 0;
}
ul li {
  display: inline-block;
  list-style: none;
  position: relative;
  vertical-align:bottom;
}
ul li a {
  padding: 10px 15px;
  display: block;
  line-height: 25px;
  margin-bottom:-1px;
}
ul li.active a {
  background:#fff;
  border:1px solid #aaa;
  border-bottom:0;
  border-radius:5px 5px 0 0;
}

ul li.active:before,
ul li.active:after {
  content:"";
  position:absolute;
  bottom:-1px;
  width:10px;
  height:10px;
  border:solid #aaa;
}
ul li.active:before {
  left:-10px;
  border-radius:8px 0;
  border-width:0 1px 1px 0
}
ul li.active:after {
  right:-10px; …
Run Code Online (Sandbox Code Playgroud)

html css css-shapes

10
推荐指数
2
解决办法
838
查看次数

制作这个容器的最具语义的方法

我想使用div和边框半径制作以下形状,对于旧浏览器,可以回退到方角.请不要图像.

我在制作标题旁边的底角时遇到了一些麻烦(用红框突出显示).我不想要很多不必要的div,它必须尽可能简单和语义. alt text http://img715.imageshack.us/img715/4214/bradiuswut.gif

<div class="container">
   <div class="header">Title</div>
   <div class="body">Content</div>
</div>

.container{width: 660px; background: #fff;}
.container .header{float: left; width: 110px; background: #333; border-radius: 5px 5px 0 0;}
.container .body{clear: left; width: 660px; background: #333; border-radius: 0 0 5px 5px;}
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

编辑1:

我是这样做的:http://jsfiddle.net/a93Rb/16/

<div class="container">
    <div class="header"></div>
    <div class="headerspacer">
       <div class="headercorner"></div>
    </div>
    <div class="body"></div>
</div>

.container{width: 660px; background: #fff;}
.container .header{float: left; width: 110px; height: 30px; background: #333; border-radius: 10px 10px 0 0;}  
.container .headerspacer{float: …
Run Code Online (Sandbox Code Playgroud)

html css css3

5
推荐指数
1
解决办法
1240
查看次数

标签 统计

css ×3

css-shapes ×2

css3 ×2

html ×2

border ×1

svg ×1