Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何更改固定线高度_Html_Css - Fatal编程技术网

Html 如何更改固定线高度

Html 如何更改固定线高度,html,css,Html,Css,我试图找出如何更改主题中特定项目的行高。这件物品似乎有一个固定的最小线高,这是我无法绕过的 如果你把某样东西放进篮子里,打开预览(右上角,绿色链接),该物品会有一个红色标题 我无法找出如何使线的高度变小 您可以在此处看到示例图像: 感谢所有的帮助 更改CSS .basket-item-container .basket-item .meta-container-wrapper .meta-container-wrapper-inner .meta-container .item-name {

我试图找出如何更改主题中特定项目的行高。这件物品似乎有一个固定的最小线高,这是我无法绕过的

如果你把某样东西放进篮子里,打开预览(右上角,绿色链接),该物品会有一个红色标题

我无法找出如何使线的高度变小

您可以在此处看到示例图像:

感谢所有的帮助

更改CSS

.basket-item-container .basket-item .meta-container-wrapper .meta-container-wrapper-inner .meta-container .item-name {
    font-weight: 650;
    font-size: 95%;
    line-height: 1.2;/*Add This*/
    display: block;/*Add This*/
}

如果我正确理解了这一点,我们将查看标记的这一部分:

<div class="meta-container">
<div>
<a href="/55-55-c-aero-wt-tour-testsieger-20-24-speichen-carbon-laufradsatz-clincher-wickel-technologie-tubeless-kompatibel-bis-110kg_2505_11402" class="item-name text-primary text-appearance">C 55/55 C AERO-WT - TOUR TESTSIEGER - Carbon Laufradsatz, Clincher, Wickel Technologie, tubeless kompatibel, bis 110kg</a>
将以文本为目标并应用新行高

.meta-container .item-name.text-primary.text-appearance {
line-height: 36px;
}