css 兼容小三角

<!DOCTYPE>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css" >

.index_nav a:hover i, .index_nav a.on i {
display: inline-block;
width: 0;
height: 0;
font-size: 0;
overflow: hidden;
position: absolute;
bottom: -26px;
left: 50%;
border: 13px dashed transparent;
border-top: 13px solid #ea331a;

}
</style>

</head>

<body>

<div class="index_nav clearfix">
<a href="javascript:;" class="on">12月17日<i></i></a>
</div>

</body>
</html>

效果截图:

时间: 2024-08-10 23:28:03

css 兼容小三角的相关文章

css制作小三角

视觉稿中经常有些小三角,如下图.每次用图片做太不方便了,我们看看用css实现的效果(支持ie6,7哦) <style> /*border实现三角*/ /*箭头向上*/ .arrow-top{ width : 0; height : 0; font-size : 0; line-height : 0; border-left: 5px dashed transparent; border-right: 5px dashed transparent; border-bottom: 5px soli

用CSS制作小三角提示符号

今天在项目中遇到了如下图的切图要求. 对,重点就是那个小三角提示符号. html 结构如下 1 <div class="wrap"> 2 <div class="up-arr1"></div> 3 <div class="up-arr2"></div> 4 </div> css 结构如下: .wrap { position: relative; } .up-arr1 { po

纯CSS实现小三角提示信息

实现后的效果如下: 不带边框的 带边框的 在此提供两种实现方式: 1.不带边框的 css: *{margin:0;padding:0;} body{ background:#666; font:14px/20px "Microsoft YaHei"; text-align: left; } .entry{ position: relative; margin-left: 20px; margin-top:20px; width:200px; background:#fff; paddi

(转载) css实现小三角(尖角)

在各种网站里面,我们会经常看到类似于这样的尖角:(示例:新浪微博) 它实现的方式有多种,哪种才是最简单的?哪种才是最优秀的?首先我声明一下,我还不清楚这个东西具体叫什么名字(哪位知道还望告知),暂且叫尖角吧,通俗易懂.我查看了各大互联网公司的网站,包括腾讯.百度.新浪.天猫.去哪网, 腾讯: 百度: 去哪网: 天猫: 其中,百度和腾讯直接用的背景图片,简单粗暴,没有艺术细菌. 优点:形状随意: 缺点:不方便维护: 下面要说的是新浪微博,右键小尖角,查看元素,可以看到一段代码: <div clas

css的小三角实现的方式

1. width:0 height:0 border宽度,颜色和透明实现. 有例子. http://www.igooda.cn/jzjl/20140401472.html 2. 还有一种利用图片.(效率没有纯css写的高,但是简单,推荐) 3. 利用一个小的文字图标. 这里边还有一个经典的absolute套absolute的例子. 4. 利用padding之类的.可以的话做一个梯形看看. ========================================= <style type=

纯CSS制作小三角

<div class="triangle-up"></div> <--向上的三角--> <div class="triangle-down"></div> <div class="triangle-left"></div> <div class="triangle-right"></div> 123测试

css画小三角

要点: div的宽度设为0 border-color 的transparent属性 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Document</title> <style> .tri{ margin: 60px; border: 10px solid ; /*width: 0; 要

一些常用的html/CSS效果---小技巧

我常用的重置样式表reset.css /*===============基础信息================*/ *{border: 0;padding: 0;margin: 0;} table {border-collapse:collapse;border-spacing:0;} ol,ul {list-style:none;} h1,h2,h3,h4,h5,h6 {font-size:100%;} q:before,q:after {content:''} input,textarea

CSS创建三角形(小三角)的几种方法

你可以在很多地方看到三角形(小三角):tooltips提示框.下拉菜单.甚至在loading载入动画里.不管你喜欢还是不喜欢,这些小元素对各UI元素之间的联系关系式很重要的. 有一些不同的方法来设计并制作一个三角形,在本文中,我将介绍: 点此查看实例展示 编码 图片 假如你已经有了三角形的图片,并且减少HTTP请求,那么将这个图片转换成一个BASE64字符串是最好的解决方案. 有用的工具(用于图片转换成BASE64编码): http://webcodertools.com/imagetobase