码迷,mamicode.com
首页 > Web开发 > 详细

css 制作圆角、圆形图形布局

时间:2019-03-31 09:35:25      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:idt   body   back   image   doctype   com   har   布局   osi   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>定位练习1</title>
    <style type="text/css">
        .con{
            width:100px;
            height:100px;
            background-color:gold;
            margin:50px auto 0;

            position:relative;
            border-radius:14px;  /* 角是圆的 */
        }

        .box{
            width:28px;
            height:28px;
            background-color:red;
            color:#fff;
            text-align: center;
            line-height:28px;

            position:absolute;
            left:86px;
            top:-14px;

            border-radius:14px; /* 圆形 */
        }
    </style>
</head>
<body>
    <div class="con">
        <div class="box">5</div>
    </div>
</body>
</html>

页面效果:
技术图片

 

css 制作圆角、圆形图形布局

标签:idt   body   back   image   doctype   com   har   布局   osi   

原文地址:https://www.cnblogs.com/reyinever/p/10630026.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!