San*_*eep 0 html javascript jquery
我是HTML新手,我必须创建一个textarea用户输入,看起来像下面的给定图像.
请问有没有人知道如何创建这种类型的textarea?
我只有创造简单的基本知识textarea.提前致谢.

玩弄border-left,border-right和border-top宽度得到适当的槽口设计
HTML
<textarea></textarea>
<div id="notch"></div>
Run Code Online (Sandbox Code Playgroud)
CSS
textarea{
width:300px;
height:80px;
border:1px solid #7c7870;
background:#7c7870;
color:#fff;
border-radius: 8px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
-moz-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
-webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}
#notch{
position: relative;
top:-4px;
left: 200px;
margin: 0;
border-bottom: 0;
border-left: 30px solid transparent;
border-right: 10px solid transparent;
border-top: 40px solid #7c7870;
padding: 0;
width: 0;
height: 0; /* ie6 height fix */
font-size: 0;
line-height: 0; /* ie6 transparent fix */
_border-right-color: pink;
_border-left-color: pink;
_filter: chroma(color=pink);
z-index:99;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
323 次 |
| 最近记录: |