伪类编写边框
来源:互联网 发布:律师事务所 知乎 编辑:程序博客网 时间:2024/06/07 14:23
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.main{
width: 300px;
height: 30px;
background-color: #CCCCCC;
position: relative;
z-index: 2;
}
.main:before{
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
transform: scale(0.5);
transform-origin: left top;
border-bottom: 1px solid red;
}
</style>
</head>
<body>
<div class="main">测试测试</div>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.main{
width: 300px;
height: 30px;
background-color: #CCCCCC;
position: relative;
z-index: 2;
}
.main:before{
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
transform: scale(0.5);
transform-origin: left top;
border-bottom: 1px solid red;
}
</style>
</head>
<body>
<div class="main">测试测试</div>
</body>
</html>
0 0
- 伪类编写边框
- 利用css3伪类实现边框环绕效果
- css伪类之input输入框鼠标点击边框变色效果
- HTML 实现伪类之input输入框鼠标点击边框变色效果
- Android程序员学WEB前端(7)-CSS(2)-伪类字体文本背景边框-Sublime
- 移动端1px边框 -- 伪元素
- 伪类 伪元素
- 伪类 伪元素
- 伪元素/伪类
- 伪元素 & 伪类
- 夜灵的Html笔记Day06——群组、后代、伪类选择器,尺寸、边框、倒角、阴影、盒子模型
- LaTex 带边框逻辑清晰的伪代码
- 编写抗木马软件伪码
- 伪类
- 伪类
- 伪类
- 伪类
- 伪类
- Linux 查看文件权限
- vue-cli&webpack&arcgis API For JS的天坑之路(二)
- Redis的安装和部署
- iOS中创建一个分类
- C语言中unsigned long long数据类型
- 伪类编写边框
- C# 程序运行无法加载 C++ DLL“xxx.dll”: 找不到指定的模块
- 系统的简单注解
- MYSQL 表锁与存储引擎交互
- 选购 nvme ssd 硬盘
- 一个简单的加载类,可以当做autoload使用
- Nginx Tomcat http 强制跳转https ssl crt key
- Android应用程序核心-应用程序的生命周期
- mysql查询的时候不区分大小写的解决方法