html - 我的 svg 轮廓不完全在 svg 边缘
问题描述
我希望我的尺码和位置非常干净。
我的 SVG 轮廓并不完全在它的边缘。我不能把它放在我想要的地方。
<div id="ticket-container">
<div id="ticket">
<object data="ticket.svg" type="image/svg+xml" id="ticket">
x
</object>
</div>
</div>`
#ticket-container{
width: 50%;
height: 100%;
display: inline-block ;
float: right;
box-sizing: border-box ;
padding-bottom: 11px;
position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
color: whitesmoke !important;
}
#ticket{
background-color: #e00808;
width: 30%;
height: 45%;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
}
#ticket-svg{
height: 21px;
display: inline-block;
}
解决方案
推荐阅读
- active-directory - 由于内部错误,无法禁用 AD 用户
- python - 使用 win32COM 时创建新的 Python 对象
- java - 使用 Java 8 Stream 的 DataProvider 查询中的 IndexOutOfBoundsException
- pandas - 将行转换为日期时间 Python
- dataframe - 在火花数据框中的空值列上应用聚合时出错
- seq2seq - 训练 seq2seq 模型时出现 InvalidArgumentError
- c# - 如果代码中的某些条件不匹配,而不是通过验证 Sql 查询,如何停止 SAP B1 Form_Data_Add 事件
- jquery - 移动设备上的导航菜单下拉菜单在点击后不会消失
- c++ - 如何将私有数据添加到 redisAsyncContext 以便在连接回调中使用我的数据?
- sql-server - 从同一网络域 PC 从 Access 2013 连接到 SQL Server 2017 时,多步 OLE DB 操作生成错误