随机li之间不需要的空间

时间:2014-07-30 16:11:42

标签: html html-lists

所以我有一个ul和一堆李。当列表出现时,Franklin&之后有随机空格。马歇尔,罗格斯大学和杜兰大学,我无法弄清楚为什么。它现在处于引导模式中,但在此之前这是一个问题。请帮忙。感谢。

                 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                      <div class="modal-dialog">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="modalLabel">Where do you want to visit?</h4>
                          </div>
                          <div class="modal-body">
                            <ul id='doubleColumn'>
                                <li>Binghamton University</li>
                                <li>Boston University</li>
                                <li>Carnegie Mellon University</li>
                                <li>Colorado College</li>
                                <li>Emory University</li>
                                <li>Fairfield University</li>
                                <li>Franklin & Marshall</li>
                                ​<li>George Washington University</li>
                                <li>Georgetown University</li>
                                <li>Indiana University</li>
                                <li>Ithaca College</li>
                                <li>Kean University</li>
                                <li>McGill University</li>
                                <li>Northwestern University</li>
                                <li>Penn State University</li>
                                <li>Quinnipiac University</li>
                                <li>Rider University</li>
                                <li>Rutgers University</li>
                                ​<li>Salisbury University</li>
                                <li>SUNY Albany</li>
                                <li>Syracuse University</li>
                                <li>The College of New Jersey</li>
                                <li>Tulane University</li>
                                <li>University of Delaware</li>
                                <li>University of Iowa</li>
                                <li>University of Maryland</li>
                                <li>University of Miami</li>
                                <li>University of Michigan</li>
                                <li>University of Pennsylvania</li>
                                <li>University of Richmond</li>
                                <li>University of Virginia</li>
                                <li>University of Wisconsin</li>
                                <li>Vanderbilt University</li>
                                <li>Virginia Tech</li>
                                <li>Washington and Lee University</li>
                                <li>Washington University (St. Louis)</li>
                                <li>William and Mary</li>
                            </ul>
                          </div>
                          <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                          </div>
                        </div>
                      </div>
                    </div>

1 个答案:

答案 0 :(得分:2)

有一些隐藏的文字。我删除了所有文本,一定很好..请复制并粘贴此列表:

 <ul>
            <li>Binghamton University</li>
            <li>Boston University</li>
            <li>Carnegie Mellon University</li>
            <li>Colorado College</li>
            <li>Emory University</li>
            <li>Fairfield University</li>
            <li>Franklin & Marshall</li>
            <li>George Washington University</li>
            <li>Georgetown University</li>
            <li>Indiana University</li>
            <li>Ithaca College</li>
            <li>Kean University</li>
            <li>McGill University</li>
            <li>Northwestern University</li>
            <li>Penn State University</li>
            <li>Quinnipiac University</li>
            <li>Rider University</li>
            <li>Rutgers University</li>
            <li>Salisbury University</li>
            <li>SUNY Albany</li>
            <li>Syracuse University</li>
            <li>The College of New Jersey</li>
            <li>Tulane University</li>
            <li>University of Delaware</li>
            <li>University of Iowa</li>
            <li>University of Maryland</li>
            <li>University of Miami</li>
            <li>University of Michigan</li>
            <li>University of Pennsylvania</li>
            <li>University of Richmond</li>
            <li>University of Virginia</li>
            <li>University of Wisconsin</li>
            <li>Vanderbilt University</li>
            <li>Virginia Tech</li>
            <li>Washington and Lee University</li>
            <li>Washington University (St. Louis)</li>
            <li>William and Mary</li>
        </ul>