您好,欢迎访问一九零五行业门户网

CSS实现书签图案的效果

这次给大家带来css实现书签图案的效果,css实现书签图案的注意事项有哪些,下面就是实战案例,一起来看一下。
示例代码如下:
<!doctype html> <html>     <head>         <meta charset="utf-8">         <title>border制作书签(图形)</title>         <style>             .p2:before { /*做一个书签效果*/                 position: absolute; /*必须*/                 top: 50px;                 left: 20px;                 z-index: 1;                 height: 0;                 padding-right: 10px;                 font-weight: bold;                 line-height: 0;                 color: #000;                 border: 15px solid #ee7600;                 border-right-color: transparent; /*右边框透明,变成空缺的角*/                 content: '书签';                 box-shadow: 0 5px 5px -5px #000;             }             .p2:after { /*书签的夹角*/                 content: '';                 position: absolute;                 top: 80px;                 left: 20px;                 border: 4px solid #89540c;                 border-left-color: transparent;                 border-bottom-color: transparent;             }         </style>     </head>     <body>         <p class="p1"></p>         <p class="p2"></p>     </body> </html>
相信看了本文案例你已经掌握了方法,更多精彩请关注其它相关文章!
推荐阅读:
css中的float的图文详解
html+css中的四种隐藏方式
以上就是css实现书签图案的效果的详细内容。
其它类似信息

推荐信息