XML/HTML Code复制内容到剪贴板
- <pre name="code" class="html"><div><a href="javascript:" id="menu" class="menu">我的淘宝<span id="flipCor" class="cor corg6"></span></a></div>
- /*垂直翻转*/
- .flipy{
- transform:rotate(180deg);
- -ms-transform:rotate(180deg); /* IE 9 */
- -moz-transform:rotate(180deg); /* Firefox */
- -webkit-transform:rotate(180deg); /* Safari 和 Chrome */
- -o-transform:rotate(180deg); /* Opera */
- }
- /*css三角,均是向下方向*/
- .cor{display:inline-block; width:0; height:0; margin-bottom:-2px; border-width:4px; border-style:solid dashed dashed; overflow:hidden;}
- /*深灰色*/
- .corg6{border-color:#666 transparent transparent;}
- .menu{display:block; padding:2px 8px; border:1px solid #fff; color:#333;font-size: 14px;margin-left: 40px;}
- .menu:hover{background-color:#f5f5f5; border:1px solid #ccc; text-decoration:none;}
- .menu:hover .cor{margin-bottom:auto; vertical-align:2px;}