css 画箭头
2024-10-01 05:27:10
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style>
*
{
margin: 0px;
padding: 0px;
} #show
{
margin: 10px auto;
position: absolute;
top: 50px;
left: 50px;
text-align: center;
} #some
{
width: 200px;
margin-left: 100px;
text-align: center;
position: absolute;
background-color: rgba(, , ,0.6);
border-radius: 5px;
} #info
{
width: 400px;
height: 300px;
position: absolute;
} #outarrow
{
border-color: transparent transparent #efefef;
border-style: solid;
border-width: 16px;
height: ;
width: ;
position: absolute;
top: 0px;
left: 184px;
} #innerarrow
{
border-color: transparent transparent white;
border-style: solid;
border-width: 16px;
height: ;
width: ;
position: absolute;
top: 0px;
left: 184px;
margin-top: 6px;
} #content
{
border: 4px solid;
border-radius: 4px;
border-color: #efefef;
width: 400px;
margin: 32px auto 0px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
} #content p
{
text-align: left;
text-indent: 20px;
}
</style> </head>
<body>
<div id="show">
<div id="some">下面就是箭头效果</div>
<div id="info">
<div id="outarrow"></div>
<div id="innerarrow"></div>
<div id="content">
<h1>使用边界产生箭头</h1>
<p>要点1:设置盒子的宽高均为0,只设置边界宽度</p>
<p>要点2:可以通过border-style改变效果</p>
</div>
</div>
</div>
</body>
</html>
显示效果:
最新文章
- Hibernate中的锁机制
- 【Python实战】机型自动化标注(搜狗爬虫实现)
- iOS之数组的排序(升序、降序及乱序)
- IPD模式下开展敏捷开发的一些问题汇总
- kali实用链接
- [转载] C++ 程序员快过来围观:非常实用全面的 C++ 资源
- HTML基础学习笔记
- Magento:Paypal付款不成功返回后不要清空购物车产品的解决方案
- Azure Site Recovery:我们对于保障您的数据安全的承诺
- java下载文件
- Mybatis的失误填坑-java.lang.Integer cannot be cast to java.lang.String
- typecho for SAE
- 带BOM头文件解析
- Python爬取南京市往年天气预报,使用pyecharts进行分析
- stm32 HAL库笔记(一)——串口的操作
- Day14--Python--函数二,lambda,sorted,filter,map,递归,二分法
- 【keytool jarsigner工具的使用】Android 使用JDK1.7的工具 进行APK文件的签名,以及keystore文件的使用
- react fake double , bind click and dblclick on the same element
- centos修改oracle字符集
- win上gulp配置