placeholder&&&&textarea

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
div { width:100px; height:100px; -webkit-transform:rotate(90deg);}
div:before {content:""; display:block; width:100px;height:50px; margin-top:10px; padding:10px; padding-bottom:0; box-sizing:border-box;
border-top-left-radius:50px;
border-top-right-radius:50px;
background:-webkit-gradient(
linear,
left top,
right top,
color-stop(0,#fff),
color-stop(1,#fff)
),-webkit-gradient(
linear,
left top,
right top,
color-stop(0,#077df8),
color-stop(1,#74baff)
);
background-clip:content-box,padding-box;
}
div:after {content:""; display:block; width:100px;height:50px; padding:10px; padding-top:0; box-sizing:border-box;
border-bottom-left-radius:50px;
border-bottom-right-radius:50px;
background:-webkit-gradient(
linear,
left top,
right top,
color-stop(0,#fff),
color-stop(1,#fff)
),-webkit-gradient(
linear,
left top,
right top,
color-stop(0,#fff),
color-stop(1,#74baff)
);
background-clip:content-box,padding-box;
}

#text1::-webkit-input-placeholder::after {
display:block;
content:"Line 2\A Line 3";
}
#text2::-webkit-input-placeholder::before {
color:#666;
content:"Line 1\A Line 2\A Line 3\A";
}
</style>
</head>
<body>
<div></div>
<textarea id="text1" placeholder="Line 1" rows="5"></textarea>
<textarea id="text2" placeholder="." rows="5"></textarea>
</body>
</html>

posted @ 2015-07-21 14:51  cgf1993  阅读(179)  评论(0编辑  收藏  举报