旧写法用固定 mt-0.5 给图标手拍偏移,而本项目 --line-height-relaxed 是 1.85(非 Tailwind 默认 1.625),根字号又有 16/17/18 三档 ⇒ 图标中心比文字行盒中心高 3.319/3.134/2.950px (地址行)与 3.313/3.133/2.945px(邮箱行)。 改为结构对齐:地址行图标包进高 = 行盒高(--line-height-relaxed × --font-size-sm)的 items-center 单元格,换行后仍对齐首行;邮箱行是单行链接,整行 items-center。 行高/字号/页高零变化,只移动两个图标。
93 lines
2.0 KiB
JSON
93 lines
2.0 KiB
JSON
[
|
|
{
|
|
"viewport": {
|
|
"name": "desktop-1440",
|
|
"width": 1440,
|
|
"height": 900
|
|
},
|
|
"rootFontSize": 18,
|
|
"rows": [
|
|
{
|
|
"tag": "SPAN",
|
|
"text": "中国四川省成都市龙泉驿区幸福路12号",
|
|
"iconHeight": 18,
|
|
"iconTop": 6879.922,
|
|
"lineHeight": 29.1375,
|
|
"cellHeight": 29.125,
|
|
"lineCenter": 6888.928,
|
|
"delta": -0.0063
|
|
},
|
|
{
|
|
"tag": "A",
|
|
"text": "contact@novalon.cn",
|
|
"iconHeight": 18,
|
|
"iconTop": 6927.047,
|
|
"lineHeight": 29.1375,
|
|
"cellHeight": 29.125,
|
|
"lineCenter": 6936.047,
|
|
"delta": 0
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"viewport": {
|
|
"name": "tablet-834",
|
|
"width": 834,
|
|
"height": 1194
|
|
},
|
|
"rootFontSize": 17,
|
|
"rows": [
|
|
{
|
|
"tag": "SPAN",
|
|
"text": "中国四川省成都市龙泉驿区幸福路12号",
|
|
"iconHeight": 17,
|
|
"iconTop": 7784.672,
|
|
"lineHeight": 27.5187,
|
|
"cellHeight": 27.5156,
|
|
"lineCenter": 7793.181,
|
|
"delta": -0.0094
|
|
},
|
|
{
|
|
"tag": "A",
|
|
"text": "contact@novalon.cn",
|
|
"iconHeight": 17,
|
|
"iconTop": 7829.188,
|
|
"lineHeight": 27.5187,
|
|
"cellHeight": 27.5156,
|
|
"lineCenter": 7837.695,
|
|
"delta": -0.0078
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"viewport": {
|
|
"name": "mobile-390",
|
|
"width": 390,
|
|
"height": 844
|
|
},
|
|
"rootFontSize": 16,
|
|
"rows": [
|
|
{
|
|
"tag": "SPAN",
|
|
"text": "中国四川省成都市龙泉驿区幸福路12号",
|
|
"iconHeight": 16,
|
|
"iconTop": 7977.125,
|
|
"lineHeight": 25.9,
|
|
"cellHeight": 25.8906,
|
|
"lineCenter": 7985.137,
|
|
"delta": -0.0125
|
|
},
|
|
{
|
|
"tag": "A",
|
|
"text": "contact@novalon.cn",
|
|
"iconHeight": 16,
|
|
"iconTop": 8019.016,
|
|
"lineHeight": 25.9,
|
|
"cellHeight": 25.8906,
|
|
"lineCenter": 8027.023,
|
|
"delta": -0.0078
|
|
}
|
|
]
|
|
}
|
|
]
|