我遇到了这个问题而且我不知道如何修复它。 我正在建立一个网站,我使用不同的字体
我需要每个字体在光学上完全相同,并且在底部完美对齐。
让我们说我写 HELLO(helvetica)HELLO(格鲁吉亚)我将纠正它们的大小,因为40px helvetica大小与40px格鲁吉亚相同。 但问题与基线有关
当我看到所有字体(相同的px和line-height)紧挨着另一个时,它们不是水平对齐的。
答案 0 :(得分:0)
@ cameron.townsend评论是正确的。您将要在所有文本上使用/root/anaconda2/lib/python2.7/site-packages/sklearn/utils /validation.py:386: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/anaconda2/lib/python2.7/site-packages/sklearn /cross_validation.py", line 1433, in cross_val_score
for train, test in cv)
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", line 800, in __call__
while self.dispatch_one_batch(iterator):
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", line 658, in dispatch_one_batch
self._dispatch(tasks)
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", line 566, in _dispatch
job = ImmediateComputeBatch(batch)
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", line 180, in __init__
self.results = batch()
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py", line 72, in __call__
return [func(*args, **kwargs) for func, args, kwargs in self.items]
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/cross_validation.py", line 1531, in _fit_and_score
estimator.fit(X_train, y_train, **fit_params)
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/naive_bayes.py", line 527, in fit
X, y = check_X_y(X, y, 'csr')
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/utils/validation.py", line 515, in check_X_y
y = column_or_1d(y, warn=True)
File "/root/anaconda2/lib/python2.7/site-packages/sklearn/utils/validation.py", line 551, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))
来查看您的需求。
这是一个展示不同路线的小提琴:https://jsfiddle.net/g7oqupej/1/
话虽如此,Chrome的默认(vertical-align:baseline;
)行为似乎是vertical-align:initial;
我不确定其他浏览器,因为我还没有测试过,但我使用的是在小提琴中使用的字体,似乎按照你的意愿排队。
我建议创建一个小提琴,显示您必须查看是否有其他事情要处理的问题。