css圆角框学习

宽度固定高度自适应

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .box{width:596px;margin: 0 auto;}
        .top_radius{background:url(images/top.png) no-repeat;height: 11px;}
        .content{background: #EBEAEA;border: 1px solid #979797;
            border-bottom: none;
            border-top: none;
            padding:10px;}
        .btm_radius{background:url(images/buttom.png) no-repeat;height: 11px;}
    </style>
    
</head>
<body>
    <div class="box">
        <div class="top_radius"></div>
        <div class="content">一张彩色照片主要就是两个东西,构图和色调,如果这两个都不错,那这张照片会差吗?我想只要内容不歪,肯定是不错的。 我自己玩ps也很多年了,刚开始2-3年调色都是我的痛,看了很多教程都还是不会,为什么呢?原因有两个: 很多教程都是在教你这个参数多少,那个参数多少,从来没告诉你为什么要这样,所以换一张图一张彩色照片主要就是两个东西,构图和色调,如果这两个都不错,那这张照片会差吗?我想只要内容不歪,肯定是不错的。 我自己玩ps也很多年了,刚开始2-3年调色都是我的痛,看了很多教程都还是不会,为什么呢?原因有两个: 很多教程都是在教你这个参数多少,那个参数多少,从来没告诉你为什么要这样,所以换一张图一张彩色照片主要就是两个东西,构图和色调,如果这两个都不错,那这张照片会差吗?我想只要内容不歪,肯定是不错的。 我自己玩ps也很多年了,刚开始2-3年调色都是我的痛,看了很多教程都还是不会,为什么呢?原因有两个: 很多教程都是在教你这个参数多少,那个参数多少,从来没告诉你为什么要这样,所以换一张图</div>
        <div class="btm_radius"></div>
    </div>
</body>
</html>

高度宽度自适应

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .content{background: #EBEAEA;border: 1px solid #979797;
            /*border-bottom: none;
            border-top: none;*/
            
            position: relative;
            padding: 9px;
            
            /*padding:10px;*/}
        .l_top_radius{
            background:url(images/l_top.png) no-repeat;
            height: 9px; 
            width: 9px;
            position: absolute;
            left: 0;
            top: 0;

            
        }
        .r_top_radius{
            background:url(images/r_top.png) no-repeat;
            height: 9px; 
            width: 9px;
            position: absolute;
            right: 0;
            top: 0;

        }
        .l_btm_radius{
            background:url(images/l_btm.png) no-repeat;
            height: 9px; 
            width: 9px;
            position: absolute;
            left: 0;
            bottom: 0;

        }

        .r_btm_radius{
            background:url(images/r_btm.png) no-repeat;
            height: 9px; 
            width: 9px;
            position: absolute;
            right: 0;
            bottom: 0;

        }
        
        

    </style>
    
</head>
<body>
    
    <div class="footer">
        <div class="content">
            <div class="l_top_radius"></div>
            <div class="r_top_radius"></div>
            <div class="l_btm_radius"></div>
            <div class="r_btm_radius"></div>
            烦。本系会比较详细地分享卤煮的一些Chrome(F12开发者功能)使用经验,从一些基础的功能开始到它的一些高级性能分析器(Timeline、Profiles),在最后,将会推荐几款好的插件,希望对您的开发工作有些许的作用。如果你对一些面板模块功能已经很了解可以直接跳过去阅读你感兴趣的部分



            
        </div>
    </div>
</body>
</html>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容