列表橫排問題。,列表橫排問題

來源:互聯網
上載者:User

列表橫排問題。,列表橫排問題

 li-列表 內行 是個磨人的小妖精~

它其實是可以當做 自動有換行的 inline元素

所以列表橫排就是 li{ float:left; }

有點距離的橫排就要設定 padding

 li{

 float:left; 

padding:15px;

}

很多導航都這麼做的呐呐呐~


對於asp列表橫排的問題

給我一分吧。我不要多,不要偶數的分數。

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td width="15">

</td>
<td width="1114" valign="top"><table width="100%" height="75" border="0" cellpadding="0" cellspacing="0">

<tr>
<td colspan="2">

<table cellspacing="0" cellpadding="2" width="100%"
border="0">

<%
set conn=server.CreateObject("adodb.connection")
conn="provider=Microsoft.Jet.oledb.4.0;Data Source="&server.MapPath("wenzhang.mdb")
set Rs=server.createobject("adodb.recordset")
rs.open "select * from url order by id desc",conn,3,2
for i=1 to 5
%>
<td><table>
<tbody>
<tr>
<td align="left" nowrap="nowrap"><img src="txt.png" width="24" height="24" border="0" align="absmiddle" onClick="AddWin('read','查看文章','read.asp?id=<%=rs("id")%>',640,480,0,0)" /><br>
<%
if len(trim(rs("vname")))>5 then
response.Write left(trim(rs(&quo......餘下全文>>
 
dede列表翻頁問題,怎橫排?

樣式是由CSS來控制的,去css檔案中找 lb_fy li有沒有float:left。
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.