在我的團隊中,我們遇到了與度量單位相關的問題。在設計時就開始開發網站的組件下面的設計規範,例如設計從鏈接到人的名字說的應該是18像素,你可以在圖片中看到:針對邊距的像素完美度量方法
但是,當我們去執行,看看結果,我們有更多的(或有時更少)像素,因爲文本本身所具有的高度,然後具有所指定的空白:
因此,在這種情況下,你結束了代之以兩段之間的23px 18px的設計指定,這會在我們的積壓工作中造成缺陷。
我們正在嘗試定義一種避免此問題的最佳方法。有什麼建議麼?
例子:
h2 {
font-weight: bold;
margin-top: 0;
font-size: 16px;
margin-bottom:
}
a, a:link, a:hover, a:active, a:visited {
color: #6b94ff;
text-decoration: none;
font-weight: normal;
font-size: 16px;
}
p {
margin: 0 0 10px;
font-size: 16px;
}
<div class="col-xs-12 col-sm-7 details">
<div class="row">
<h2 class="title-link">
<a href="/news/updates/imds-first-ever-emba-discovery-expedition-to-vietnam/" target="_self">
IMD’s first-ever EMBA Discovery Expedition to Vietnam
</a>
</h2>
<p class="topics">
Topics: <span>Economics</span>
</p>
<p>
Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules.
</p>
<a class="promotional" href="#" target="_self">
Read more
</a>
</div>
</div>
我們需要努力代碼片段重現該問題,否則我們看不出如何/爲什麼/什麼 – LGSon
填充,邊距,邊框,線條高度,縮放比例,比例尺,位置...... –