css自动换行后,行高只一行,两行合并了

.htmledit_views code ol li,.htmledit_views pre code,.htmledit_views code ol li div.hljs-ln-code, .htmledit_views code ol li div.hljs-ln-numbers,.htmledit_views pre code, .htmledit_views blockquote ul{
    height:150%!important;
    line-height:150%!important;
}
.htmledit_views code ol li div.hljs-ln-numbers, .htmledit_views code ol li div.hljs-ln-code{
    float:initial!important;
}

解题思路:
1,先选中节点,然后仔细观察重要css属性,如行高./将之改为44px,然后就看不见这种现象了.说明与行高有关.
2,,行高都修改下.
3,最后,那个元素朝右.则选中该元素,仔细观察.将剩余css去掉试试看.原来与float有关.将之去掉.

posted @ 2021-02-07 20:52  zjh6  阅读(52)  评论(0)    收藏  举报  来源