我似乎无法从我的无序列表中删除缩进,当我的列表中的长行包围。这是我的列表看起来像:
> Windows用户可以使用putty
> Mac用户可以使用Terminal.app
> Linux用户可以使用SSH userid@ourserver.com端口22
> ………..>或使用像Cyberduck的SFTP程序只是指向它
…………………………………..> ourserver.com,port 22
(点显示缩进)
我读了一堆解决方案,并尝试设置边距和填充为零,使用文本缩进,列表风格,但没有什么作品。我认为问题是,在列表上面有一个标题,我需要居中,所以我将边距设置为自动,然后它弄乱了下面的列表。但即使我把两个div放在父div里面也不行。
这里是html / css(我包括一切,如果有一些设置,导致所有其他解决方案失败)
Did you know you can SSH directly to ourserver.com?
- Windows users can use putty
- Mac users can use the Terminal.app
- Linux users can use SSH userid@ourserver.com port 22
- Or use an SFTP program like Cyberduck just point it at ourserver.com, port 22
#info {
color:#FFFFFF;
width:440px;
margin-left:auto;
margin-right:auto;
border-radius: 10px;
border-style:solid;
border-width:2px;
border-color:#FFF;
padding-bottom:20px; padding-left:20px; padding-right:20px;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333333), to(#cccccc));
overflow: hidden;
}
#info ul li {
float:left;
}