>  기사  >  웹 프론트엔드  >  CSS实现自定义手型气泡提示_html/css_WEB-ITnose

CSS实现自定义手型气泡提示_html/css_WEB-ITnose

WBOY
WBOY원래의
2016-06-24 11:36:52985검색

<strong>实现自定义的手型气泡提示</strong><html>  <head>      <meta charset="utf-8">      <title></title>      <style type="text/css">         .test{        	background: #CE5010 none repeat scroll 0% 0%;				position: relative;				border-radius: 20px;				margin: 60px;				height: 2em;				text-align: center;				float: left;				color: white;				padding-left: 10px;				padding-right: 10px;				padding-top: 5px;				font-size: 12px;     }           .test span.bot{      		width: 0;          height: 0;          font-size: 0;          overflow: hidden;          position: absolute;        border-style: solid;			left: 0px;			border-color: transparent transparent transparent rgb(206, 80, 16);			top: 18px;			border-width: 12px;    }             </style>  </head>    <body>      <div class="test">          <span class="bot"></span>          CSS"边框法"实现气泡对话框效果,需要两个辅助span    </div>             </body>  ""  <html>

  

实现效果如下:

 

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.