设为首页 加入收藏

TOP

前端学习日记之HTML、CSS 简单总结(三)
2019-09-03 03:32:36 】 浏览:189
Tags:前端 学习 日记 HTML CSS 简单 总结
> <div class="box1"></div> <div class="box2"></div> </body> </html>

23. 圆角

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Examples</title>
        <meta name="description" content="">
        <meta name="keywords" content="">
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            .box {
                width: 150px;
                height: 150px;
                background: pink;
                margin: auto;
                margin-top: 100px;
                border-radius: 0px 0px 0px 0px ; /*top right bottom right*/

            }
        </style>
    </head>
<body>
<div class="box"></div>

</body>
</html>

24. 伪类

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Examples</title>
        <meta name="description" content="">
        <meta name="keywords" content="">
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            li {
                list-style: none;
            }
            a {
                text-decoration: none;
            }
            .list li{
                float: left;
                width: 120px;
                background: red;
                text-align: center;
                color:#fff;
                margin-left: 20px;
                position: relative;
            }
            .list li:after {
                content: "";
                border-top: 8px solid #fff;
                border-left:8px dashed transparent;
                border-right: 8px dashed transparent;
                position: absolute;
                right: 5px;
                top: 8px;

            }
        </style>
    </head>
<body>
    <ul class="list">
        <li>home</li>
        <li>photo</li>
        <li>exit</li>
    </ul>

</body>
</html>

首页 上一页 1 2 3 4 5 6 7 下一页 尾页 3/10/10
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇sublime text3格式化html,css,js.. 下一篇ife2018 零基础学院 day 4

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目