Skip to content

Instantly share code, notes, and snippets.

@hikerpig
Created January 13, 2015 07:30
Show Gist options
  • Save hikerpig/e088fe026843a4862376 to your computer and use it in GitHub Desktop.
Save hikerpig/e088fe026843a4862376 to your computer and use it in GitHub Desktop.
三角测试 // source http://jsbin.com/tuvonu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>三角测试</title>
<style id="jsbin-css">
.dropdown a {
padding: 10px;
background: #aa4599;
position: relative;
color: white;
text-decoration: none;
}
.dropdown .triangle {
position: absolute;
right: -10px;
bottom: -10px;
border: 10px solid transparent;
border-left-color: #700277;
transform: rotate(45deg);
}
</style>
</head>
<body>
<div class="dropdown">
<a data-toggle="dropdown" href="javascript:;">
Dropdown trigger
<span class="triangle"></span>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
</ul>
</div>
<script id="jsbin-source-css" type="text/css">.dropdown {
a {
padding: 10px;
background: #aa4599;
position: relative;
color:white;
text-decoration: none;
}
.triangle {
position: absolute;
right: -10px;
bottom: -10px;
border: 10px solid transparent;
border-left-color: #700277;
transform: rotate(45deg);
}
}</script>
</body>
</html>
.dropdown a {
padding: 10px;
background: #aa4599;
position: relative;
color: white;
text-decoration: none;
}
.dropdown .triangle {
position: absolute;
right: -10px;
bottom: -10px;
border: 10px solid transparent;
border-left-color: #700277;
transform: rotate(45deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment