css3 斜角标签
来源:互联网 发布:pdf分割小软件 编辑:程序博客网 时间:2024/05/16 00:31
<!DOCTYPE html>
<html>
<head>
<style>
.label{
display: block;
position:relative;
width: 50%;
height: 2em;
background-color: #333333;
color: #ffffff;
font-weight: bold;
line-height: 28px;
text-align: center;
float: right;
transform: translate(25%, 20%) rotate(45deg);
box-shadow: 0 0 5px rgba(0,0,0,.5),inset 0 0 2px #fff;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
a{
font-family: 微软雅黑;
text-decoration: none;
cursor: auto;
}
</style>
</head>
<body>
<div style="width: 200px; height: 200px; background-color: red; overflow: hidden;">
<a href="" class="label" id="soure">个标签</a>
</div>
</body>
</html>
<html>
<head>
<style>
.label{
display: block;
position:relative;
width: 50%;
height: 2em;
background-color: #333333;
color: #ffffff;
font-weight: bold;
line-height: 28px;
text-align: center;
float: right;
transform: translate(25%, 20%) rotate(45deg);
box-shadow: 0 0 5px rgba(0,0,0,.5),inset 0 0 2px #fff;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
a{
font-family: 微软雅黑;
text-decoration: none;
cursor: auto;
}
</style>
</head>
<body>
<div style="width: 200px; height: 200px; background-color: red; overflow: hidden;">
<a href="" class="label" id="soure">个标签</a>
</div>
</body>
</html>
0 0
- css3 斜角标签
- PPT斜角标签怎么制作
- 斜角地图
- CSS3制作Freebie标签
- css3 a标签效果
- CSS3动画效果标签
- CSS3给页面打标签
- 纯CSS实现斜角
- 纯CSS实现斜角
- 【HUSTOJ】1064: 斜角I
- 【HUSTOJ】1065: 斜角II
- 【HUSTOJ】1066: 斜角III
- 【HUSTOJ】1067: 斜角IV
- 纯CSS3实现的标签效果
- CSS3 主要知识点总结+HTML5 新增标签
- Html5 CSS3新标签解释及用法
- CSS3主要知识点总结+HTML5新增标签
- h5新增标签及css3新增属性
- 1.Selenium之简介
- SOAPUI 测试Http 协义
- hd-1863:畅通工程 Kruskal
- CLRS 6.5优先队列
- jQuery层次选择器
- css3 斜角标签
- 介绍简单实用APP动画效果的两个关键
- bootstrap时间插件daterangepicker
- 图片拉伸函数详解
- ipa包重新签名,网上找的工具
- Apache Maven 入门篇 ( 上 )自己已亲测!!
- string 与char*
- Redis on EC2的性能测试
- Linux学习之CentOS(十三)--CentOS6.4下Mysql数据库的安装与配置