利用css实现网页带箭头的提示框
来源:互联网 发布:竞价调词软件 编辑:程序博客网 时间:2024/05/18 03:43
<html>
<head>
<title>纯CSS无图片带箭头的DIV方框</title>
<style>
div.container{position:absolute;
top:30px;
left:40px;
font-size: 9pt;
display:block;
height:100px;
width:200px;
background-color:transparent;
*border:1px solid #666;
}
s{
position:absolute;
top:-20px;
*top:-22px;
left:20px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #666 transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
i{
position:absolute;
top:-9px;
*top:-9px;
left:-10px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #fff transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
.content{
border:1px solid #666;
-moz-border-radius:3px;
-webkit-border-radius:3px;
position:absolute;
background-color:#fff;
width:100%;
height:60px;
padding:5px;
*top:-2px;
*border-top:1px solid #666;
*border-top:1px solid #666;
*border-left:none;
*border-right:none;
*height:102px;
box-shadow: 3px 3px 4px #999;
-moz-box-shadow: 3px 3px 4px #999;
-webkit-box-shadow: 3px 3px 4px #999;
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999');
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";
}
</style>
</head>
<body>
<div class="container">
<div class="content"><br>这是框中的文字,可动态显示。高度自动增加,应该不错吧^_^</div>
<s>
<i></i>
</s>
</div>
<br />
</body>
</html>
<head>
<title>纯CSS无图片带箭头的DIV方框</title>
<style>
div.container{position:absolute;
top:30px;
left:40px;
font-size: 9pt;
display:block;
height:100px;
width:200px;
background-color:transparent;
*border:1px solid #666;
}
s{
position:absolute;
top:-20px;
*top:-22px;
left:20px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #666 transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
i{
position:absolute;
top:-9px;
*top:-9px;
left:-10px;
display:block;
height:0;
width:0;
font-size: 0;
line-height: 0;
border-color:transparent transparent #fff transparent;
border-style:dashed dashed solid dashed;
border-width:10px;
}
.content{
border:1px solid #666;
-moz-border-radius:3px;
-webkit-border-radius:3px;
position:absolute;
background-color:#fff;
width:100%;
height:60px;
padding:5px;
*top:-2px;
*border-top:1px solid #666;
*border-top:1px solid #666;
*border-left:none;
*border-right:none;
*height:102px;
box-shadow: 3px 3px 4px #999;
-moz-box-shadow: 3px 3px 4px #999;
-webkit-box-shadow: 3px 3px 4px #999;
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999');
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";
}
</style>
</head>
<body>
<div class="container">
<div class="content"><br>这是框中的文字,可动态显示。高度自动增加,应该不错吧^_^</div>
<s>
<i></i>
</s>
</div>
<br />
</body>
</html>
- 利用css实现网页带箭头的提示框
- css实现对话框-带箭头提示框
- 纯CSS实现带箭头的提示框效果
- DIV+CSS制作带箭头提示框
- CSS实现带箭头的提示框及鼠标在按钮与提示框上提示框不隐藏的Javascript的实现
- CSS实现带箭头的DIV
- CSS实现带箭头的DIV
- 带箭头阴影的提示框,CSS代码,IE不兼容
- 纯CSS实现tooltip提示框,CSS箭头及形状
- CSS实现无图片带箭头的DIV方框
- css 箭头的实现
- 纯CSS箭头提示框
- 纯css实现箭头,上下左右的箭头
- 纯CSS实现带小三角的提示框
- 带箭头的提示tips样式
- 使用Less制作带箭头提示框
- div带箭头提示框实例
- 带箭头的进度流程 css
- linux read 用法
- OCP考题解析_042:控制文件的备份和转储
- 非常好的例子,无限级分类
- u盘winpe下安装windows server 2003
- [1月23日的脚本] 在Word文档中插入多张图片 (PowerShell)
- 利用css实现网页带箭头的提示框
- 存储例程、存储过程进阶学习
- 教你如何看电脑配置
- 智能手机上的显卡 解读ARM架构主流GPU
- MySQL Proxy 安装与读写分离体验
- 测试驱动开发——读《浮现式设计》有感
- Torque2D MIT 学习笔记(6) ---- 模块管理
- 【剑指offer】【九度oj】数组中的逆序对
- CADFANS 2013最新字体库下载