边框和基线不对齐

时间:2015-11-03 10:54:41

标签: html css

我刚开始使用HTML和CSS

我想使用Border-left绘制一条线,但是显示的线条比我绘制的div框更短(如图所示)the line is not touch with baseline

from sklearn import svm
from sklearn import datasets
from sklearn.externals import joblib

clf = svm.SVC()
iris = datasets.load_iris()
X, y = iris.data, iris.target
clf.fit(X, y)

print(clf.predict(X))
joblib.dump(clf, 'clf.pkl') 

1 个答案:

答案 0 :(得分:-1)

请使用#logodiv的height属性。以下是更新后的代码。

body{
  margin: 0;
}

#topbar{
  background-color:Black;
  width:100%;
  height:40px;
}
.indsidbar{
  width: 985px;
  margin: 0 auto;
}
#logodiv{
  height:40px;
  border-right: 1px solid #E7E8E1;
  float: left;
  padding-right: 10px;
}