Home > Web Front-end > HTML Tutorial > <li> <a>123</a><a>123456</a></li>如果宽度不够,第二个a标签的部分文字换行了,那么让该a标签的文字整体换行并与上一个a标签左对齐_html/css_WEB-ITnose

<li> <a>123</a><a>123456</a></li>如果宽度不够,第二个a标签的部分文字换行了,那么让该a标签的文字整体换行并与上一个a标签左对齐_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:51:18
Original
1893 people have browsed it

  •  123123456
  • 如果宽度不够,第二个a标签的部分文字换行了,那么让该a标签的文字整体换行并与上一个a标签左对齐


    回复讨论(解决方案)

    在前一个a后面加换行看有没有用,不然试试缩进

    <li><a>123</a><br/><a style="text-indent: 14px;display: inline-block">123456</a></li>   
    Copy after login

    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template