css - ::after 元素相交的细线
问题描述
我的代码如下所示:
.bubble {
background-color: white;
border-radius: 12px;
border: 1.3px solid black;
width: 90%;
max-width: 800px;
padding: 8px 12px;
position: relative;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
text-align: justify;
word-break: break-word;
hyphens: auto;
}
.tail {
position: absolute;
overflow: hidden;
top: 12px;
left: -10px;
height: 12px;
width: 10px;
}
.tail::after {
background: #ffffff;
border: 1.3px solid black;
content: '';
height: 100%;
position: absolute;
right: -6px;
top: -9px;
transform-origin: 0 100%;
transform: rotate(47deg);
width: 100%;
}
<div class='bubble'>
<div class='tail'></div>
Hi!
</div>
<style>
但是,在 MacOS Chrome 上,有一条细线代替了根本不应该有任何线条的边框。为什么会发生这种情况,我该如何删除它?谢谢!!
解决方案
推荐阅读
- java - 将 Java 8 项目编译成 Java 6 jar
- java - java heap dump 显示的保留堆内存比预期的要少
- android - android EditText中的imeActionId是什么?
- javascript - 在 JSP 页面上显示所有 Java 列表项
- inno-setup - Inno Setup 更改自定义选项页面上现有单选按钮的标题
- java - 获取 java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
- html - 边框半径仅适用于 div 的一侧
- sql-server - SQL SERVER DB 关闭 PHP 连接
- java - context.getText() 排除 ANTLR4 中的空格
- sql-server - 在分页符上隐藏报表服务器中的空列