<!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>

显示效果:

最新文章

  1. Hibernate中的锁机制
  2. 【Python实战】机型自动化标注(搜狗爬虫实现)
  3. iOS之数组的排序(升序、降序及乱序)
  4. IPD模式下开展敏捷开发的一些问题汇总
  5. kali实用链接
  6. [转载] C++ 程序员快过来围观:非常实用全面的 C++ 资源
  7. HTML基础学习笔记
  8. Magento:Paypal付款不成功返回后不要清空购物车产品的解决方案
  9. Azure Site Recovery:我们对于保障您的数据安全的承诺
  10. java下载文件
  11. Mybatis的失误填坑-java.lang.Integer cannot be cast to java.lang.String
  12. typecho for SAE
  13. 带BOM头文件解析
  14. Python爬取南京市往年天气预报,使用pyecharts进行分析
  15. stm32 HAL库笔记(一)——串口的操作
  16. Day14--Python--函数二,lambda,sorted,filter,map,递归,二分法
  17. 【keytool jarsigner工具的使用】Android 使用JDK1.7的工具 进行APK文件的签名,以及keystore文件的使用
  18. react fake double , bind click and dblclick on the same element
  19. centos修改oracle字符集
  20. win上gulp配置

热门文章

  1. (转)OGNL与值栈
  2. Centos 7 关闭firewall防火墙启用iptables防火墙
  3. Git 基础教程 之 多人协作
  4. Python基础-while奇数和
  5. oi的小转折
  6. 【郑轻邀请赛 A】tmk射气球
  7. poj 2031
  8. py文件控制台执行时,报错:引入的模块不存在
  9. springCloud学习-服务链路追踪(Spring Cloud Sleuth)
  10. 中缀表达式转逆波兰式(后缀表达式)求值 C++ Stack