原因:搜索框是 Fomantic 的 .ui.fluid.action.left.icon.input,放大镜是绝对定位的 .icon(默认宽 2.671em),官方靠 input 的 padding-left 让位。我们把 padding 覆盖成 0 10px 之后,图标位置不变、文字却顶到最左边,于是叠在一起。 改动: - input padding 改为 0 10px 0 37px(量过:图标右边缘 69px,文字起点 75px) - .ui.input > .icon 宽 30px、透明度 .7 - 附 preview/_reposearch_probe.html,加载线上 index.css 复现该 DOM 并可量尺 样式表 ?v=10 |
||
|---|---|---|
| .. | ||
| assets | ||