- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
这是我当前的图像圈气球的 CSS
.circle-image{
width: 64px;
height: 64px;
border-radius: 50%;
background-size: contain;
background-position: center;
background-image: url("/assets/img/dashboard/img-stdn.png");
display: block;
}
div 输出如下:
如何让div边框变成这样?
假设 div 中的图像:
最佳答案
您可以使用伪元素来创建您的语音气泡三 Angular 形,如下面的演示所示。
这通过在正方形上使用倾斜
,并将其绝对
定位在相对
定位的容器元素中来实现。
或者,如果您能够使用 background-image
而不是图像标签,则可以使用单个元素来实现。
.circ {
height: 100px;
width: 100px;
border-radius: 50%;
bordeR: 5px solid tomato;
position: relative;
}
.circ img {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: 50%;
}
.circ:before{
content:"";
position:absolute;
top:10%;
right:0;
height:20px;
width:20px;
background:tomato;
transform:skewX(55deg) skewY(10deg);
}
<div class="circ">
<img src="http://i.stack.imgur.com/lCp2t.png" />
</div>
有关生成三 Angular 形的更多信息,您可以找到 this关于如何实现这个三 Angular 形的非常有用的演示。
通过使用背景图像,您可以仅使用一个元素来实现。
.circ {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
border: 5px solid tomato;
background:url(http://i.stack.imgur.com/lCp2t.png);
background-size:100% 100%;
}
.circ:before{
content:"";
position:absolute;
top:10%;
right:0;
height:20px;
width:20px;
background:tomato;
transform:skewX(55deg) skewY(10deg);
z-index:-1;
}
<div class="circ"></div>
关于html - 圆形 div 气球,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30523176/
是否有一个很好的模拟/等同于JEDI Desktop Alert(桌面右下角的一种气球)? 气球提示无法像堆栈一样显示(新提示位于其他提示的顶部),但 JEDI Desktop Alert 可以做到。
是否可以通过编程方式关闭 TTrayIcon 气球提示? 问题: 我有一个计时器,每分钟检查一次消息。当它发现一条消息(例如 ABC 服务已停止)时,它会显示带有消息的气球: procedure TF
如何更改 google 地球中地标气球的样式?不是kml数据,是气球本身。例如,我想圆润边界。我做了一个示例,但总是在我放置的样式周围看到空白边框。 Javascript代码: var ge=null
这是我当前的图像圈气球的 CSS .circle-image{ width: 64px; height: 64px; border-radius: 50%; backg
我有一个 TEdit,其中 PasswordChar 设置为 *,并且我希望如果 Caps Lock 模式已打开。仅当编辑器获得焦点或打开 Caps Lock 模式且焦点位于该编辑器中时,才会出现该标
我有 4 个股票图表想要比较。当我尝试为它们设置 ballon 属性时,我总是得到一些多余的属性。 我的第一个想法是只指定一个 StockGraph 但我得到了一个额外的对象。 let chart
让用户将鼠标悬停在链接/标签/文本上并快速弹出包含有关该项目的信息的了解更多气球的最佳方式是什么。有什么原生于 HTML5 的东西吗?我浏览了 w3schools 和网络上的其他一些资源,但没有发现任
我正在使用 osmdroid 和 osmdroid 奖励包来展示气球。在气球内部有一个 ScrollView ,其中包含一个线性布局(垂直)作为 subview 。 当我尝试向下滚动时,我的 map
每当我在 Visual Studio 中使用宏时,系统托盘中都会出现一个烦人的提示气球和伴随的“砰”声。它说: Visual Studio .NET macros To stop the macro
如何在 iOS 中触摸或点击标记时制作 map 气球?简而言之,我希望我的应用程序的 map 功能能够弹出 map 气球以显示有关标记所在位置的某些信息。 我正在使用谷歌地图,因为我听说它现在比 iO
我已经实现了一个融合表格 map 来为我的谷歌地图创建国家填充......但是我真的需要摆脱当你点击一个国家时弹出的信息窗口/卡片。我试着格式化卡片,这样就没有实际内容了,但它根本没有改变卡片。它们仍
我是一名优秀的程序员,十分优秀!