我正在生成链接 <a>
与 $_GET [Array]
显示在一个框中。每行约。 5 -10 个链接。我正在寻找一种解决方案来设置这些链接的样式 - 以确保它们不会显示在两行中。
我正在使用 {text-align:justify;}
具有相同的边界距离,但想知道是否有任何方法可以防止这些链接显示在 2 行中。
这是我的CSS
.box {
width : 782px;
min-height : 120px;
position : relative;
padding : 10px 10px 40px 10px;
border : 1px solid #D3D3D3;
margin-left : 5px;
text-align :justify;
}
.link a {
position :relative;
padding : 1px 6px;
border-right : 1px dotted #555;
color : #555;
text-decoration : none;
font-size :15px;
}
最佳答案
关于php - 强制链接不分两行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17505770/