html - css - 组织结构图 - 垂直线在某些情况下不合适
问题描述
我正在使用以下插件。 https://github.com/dabeng/OrgChart。
在某些分辨率下,垂直线不合适。 https://github.com/dabeng/OrgChart/issues/410
我已经分析了呈现的 html 并尝试使用相同的代码。对于某些分辨率,我遇到了同样的问题。
请看下面的提琴手。
.downline{
height:30px;
width:2px;
background:red;
text-align:center;
background: red;
text-align: center;
background-color: rgba(217, 83, 79, 0.8);
margin: 0px auto;
height: 55px;
width: 2px;
float: none;
}
.leftLine{
border-right:1px solid green;
}
.rightLine{
border-left:1px solid green;
}
table{
margin:50px;
border-spacing: 0 !important;
border-collapse: separate !important;
}
.item{
padding:5px;
border:1px solid black;
}
<table>
<tr>
<td colspan="2">
<div class="downline">
</div>
</td>
</tr>
<tr>
<td class="leftLine">
</td>
<td class="rightLine">
</td>
</tr>
<tr>
<td colspan="2" >
<div class="item">
Test 123
</div>
</td>
</tr>
</table>
解决方案
推荐阅读
- python - 使用 Python 将字符串中的正斜杠替换为反斜杠
- android - 将按钮大小调整到一定比例
- laravel - 如何更改 Tymon JWT 包 laravel 中的响应消息
- mysql - MySQL utf-8 无法识别特殊字符
- azure - Azure B2C 用户流 v2.0(注册和登录) - 无法找到 Userinfo 端点
- json - 在 React Native 中重新映射 Firebase JSON 数据
- authentication - Azure ADB2C 多 Web API 身份验证
- swift - SwiftUI:停止永远重复的动画
- spring-webflux - 如何在 spring-webflux 中使用请求和会话范围(截至最新版本)
- java - 如何在 Android Studio 中压缩 Kotlin 项目