1、CSS屬性含義。網頁設計問題
word-spacing 單詞的間距
letter-spacing 字體間距
backround-attachment 固定背景
margin-top 上外邊距
boder-right-style 右邊框樣式
table{margin:20px 10 px}
text-indent 段落縮進,一般是專文章開頭的空格
font-variant 字體變數小屬寫變大寫
background-repeat 背景重復屬性
border-bottom-width 下邊框的寬度
visibility 設置是否可見
padding-left 左內邊距
list-style 小點的樣式,比如li前面的那個點,使用list-style:none,就取消那個點了
list-style-image 說白了就是上面那個類似,只是那個點這里可以用圖片代替
2、html如何讓文字居中顯示
你的話有歧義,所以導致下面的回答有歧義。
兩種情況:1、文本格式居中;2、文本所在標簽居中顯示在窗口中。
1、如其他匿名用戶回答的一樣,給文本所在標簽加CSS屬性值"text-align:center"即可。例如:
<p style="text-align:center">我是文本,居中顯示</p>2、有很多種方法,這里介紹兩種,例如:
1)(建議)文本應該被 行內標簽或行內塊級標簽 包裹,行內標簽或行內塊級標簽又被 塊級標簽包裹。此種方式 文本格式 會居中。若想 文本格式 不居中,可在行內標簽或行內塊級標簽中加CSS屬性值"text-align:left"或其他。
<div style="text-align:center"> <!-- 塊級標簽 -->2)文本被塊級標簽包裹。為塊級標簽設置寬度,並加上CSS屬性值" margin:0 auto"。此種方式 文本格式 不會居中。若想 文本格式 也居中,可在塊級標簽加CSS屬性值"text-align:center"。
<div style="width: 100px; margin:0 auto">我是文本所在標簽,文本居中顯示</div>以上,謝謝。
3、網頁開發:文章列表的資料庫怎麼設計?
動態網頁只要一個頁面就行了。
文章表可以這樣設計(因為你的要求簡單,就用簡單方法)
ID
文章主題
文章內容
作者
發表時間
ID是唯一的。
列表頁列出所有的文章,點擊每個鏈接進入文章詳情頁,用ID查找詳細信息並在詳情頁顯示
祝好運,望採納。
4、求助:網頁設計中怎樣實現通過JS 點擊 左側的文章分類,然後再同一個html右側顯示該分類下的文章列表
直接用iframe不就行了嗎!
左側點擊分類右邊顯示分類信息如:
<a href="a.html" target="message">A類文章</a>
<a href="b.html" target="message">B類文章</a>
比如說你要點擊A類文章要讓A類文章的具體信息顯示在左邊那我可以在左邊建一個<iframe src="xxx.html" width="1000" height="400" scrolling="no" frameborder="0" name="message"></iframe>這樣就行了 target="message" 這句話就是讓你的連接顯示在什麼地方 相應的填上iframe裡面name的值
5、製作文章列表網頁
<%const MaxPerPage =40
dim totalPut
dim CurrentPage
dim TotalPages
set rs2=server.createobject("adodb.recordset")
sql="select * from company order by update desc"%>
<%end if%>
<% rs2.open sql,conn,1,1
if not rs2.eof then%>
<%
dim p ,intcur
if request.QueryString("intcur")=0 then
intcur=1
else
intcur=cint(request.QueryString("intcur"))
end if
p=1
rs2.pagesize=40
if not rs2.eof then
rs2.absolutepage=intcur
inttotal=rs2.pagecount
totalnumber=rs2.recordcount
dim n
if totalnumber mod intpagesize = 0 then
n = totalnumber \ intpagesize
else
n = totalnumber \ intpagesize + 1
end if
%>
<%
do until p>rs2.pagesize or rs2.eof
%>寫文章標題的位置<br><% p=p+1
rs2.movenext
loop
%>
<%end if
rs2.close
set rs2=nothing
%>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td>
<div align="left">
<%
if n < 2 or intcur < 2 then
response.write "<table border=0 width=99% cellspacing=0 cellpadding=0 >"
response.write "<tr height=30>"
response.write "<td align=left>"
response.write "共<font color=000000><b> " & n & " </b></font>頁 第<font color=000000><b> " & intCur & " </b></font>頁 檢索到<font color=000000><b> "&totalnumber&" </b></font>條信息</TD>"
response.write "<td align=right>"
response.write "【最前頁】【上一頁】"
else
response.write "<table border=0 width=90% cellspacing=0 cellpadding=0>"
response.write "<tr height=30>"
response.write "<td align=left>"
response.write "共<font color=000000><b> " & n & " </b></font>頁 第<font color=000000><b> "&intcur&" </b></font>頁 檢索到<font color=000000><b> " & totalnumber & " </b></font>條信息"
response.write "<td align=right>"
%>
【<a href="?intcur=1&keyword=<%=request("keyword")%>"><font color="#333333">最前頁</font></a>】
【<a href="?intcur=<%=intcur-1%>&keyword=<%=request("keyword")%>"><font color="#333333">上一頁</font></a>】
<%
end if
if n-intcur < 1 then
response.write "【下一頁】【最後頁】"
else
%>
【<a href="?intcur=<%=intcur+1%>&keyword=<%=request("keyword")%>"><font color="#333333">下一頁</font></a>】
【<a href="?intcur=<%=n%>&keyword=<%=request("keyword")%>"><font color="#333333">最後頁</font></a>】
<%
end if
response.write "</td>"
response.write "</tr>"
response.write "</table>"
%>
</div></td><td>跳到<SELECT name=select1
onchange="if(this.selectedIndex) window.open(this.options[this.selectedIndex].value);"
style="FONT-SIZE: 9pt; LINE-HEIGHT: 9pt">
<%for jpage = 1 to n%>
<option value="?intcur=<%=jpage%>&act=<%=request("act")%>&tyc=<%=request("tyc")%>" <%if jpage=intcur then%>selected<%end if%>><%=jpage%></option>
<%next%></SELECT>
</td>
</tr>
</table>