line-heigeht是用來表示什么的?
#box1{
? ? ? width:100px;
? ? ? height:100px;
? ? ? line-height:100px;
? ? ? padding:10px;
? ? ? text-align:center;
? ? ? border:1px solid red;
}
#box1{
? ? ? width:100px;
? ? ? height:100px;
? ? ? line-height:100px;
? ? ? padding:10px;
? ? ? text-align:center;
? ? ? border:1px solid red;
}
2016-03-31
舉報
2016-03-31
表示每行字之間的高度
2016-03-31
line-height 可以調(diào)整行間距
如代碼:p{line-height:1.5em}設置段落行間距為1.5個給定元素字體的font-size值(也就是1.5個字體大小的值)
2016-03-31
line-height 表示行間距
2016-03-31
就如同Word文檔里的行間距