<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>1</title>
<style type="text/css">
body{margin:100px;}
#x
{
position:relative;
width:300px;
height:360px;
background-color:#07284a;
-moz-border-radius: 30px;
-webkit-border-radius:30px;
-khtml-border-radius:30px;
border-radius:30px;
border:1px solid #37629B;
}
#f
{
background-color:#07284a;
width:126px;
height:126px;
position:absolute;
right:-63px;
top:-63px;
-moz-border-radius: 63px;
-webkit-border-radius:63px;
-khtml-border-radius:63px;
border-radius:63px;
border:1px solid red;
}
</style>
</head>
<body>
<div id="x">
<div id="f"></div>
</div>在"x“块内显示的是红色的圆形边框.我如何从圆圈中移除25%的边框?抱歉英语不太好
添加了
http://www.flickr.com/photos/26325973@N02/5223999393/
发布于 2010-12-01 19:45:04
我相信你想要移除边框的左下角,这样它就能与大矩形混合。你可以通过移除底部边框,旋转45度,使底部变成左下角:
border-bottom-color: transparent;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);https://stackoverflow.com/questions/4328265
复制相似问题