婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁(yè) > 知識(shí)庫(kù) > li的簡(jiǎn)單應(yīng)用

li的簡(jiǎn)單應(yīng)用

熱門標(biāo)簽:北川縣地圖標(biāo)注 山西旅游景地圖標(biāo)注 荒野大鏢客2地圖標(biāo)注怎么變中文 沈陽(yáng)智能外呼系統(tǒng)排名 武漢人工外呼系統(tǒng) 移動(dòng)400辦理電話 中國(guó)地圖標(biāo)注各省份 蘇州通信外呼系統(tǒng)多少錢 上古卷軸5地圖標(biāo)注mod
作者:eoe
雖然自己天天寫(xiě)CSS~~
可是來(lái)了原創(chuàng)文章這里~~不知道要寫(xiě)什么~~

今天就先寫(xiě)個(gè)LI 的簡(jiǎn)單應(yīng)用~~以后慢慢加好了

這是一個(gè)普通的LI
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head>
title>li的簡(jiǎn)單應(yīng)用/title>
/head>
body>
div id="test">
ul>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
/ul>
/div>
/body>
/html>
   提示:你可以先修改部分代碼再運(yùn)行

加了點(diǎn)CSS樣式定義可以這樣


  引用: 
*{margin:0;padding:0;} 習(xí)慣性把所有的元素的內(nèi)補(bǔ)丁外補(bǔ)丁定義為0
0可以沒(méi)有單位~~理論上是要單位的~不過(guò)0px 0pt 0em 都是0 所以~懶了~~

#test ul li 是 包含選擇符
定義ID為test 里面的ul里的li
margin:~在基本所有的瀏覽器解析都是一樣~
這里之所有要寫(xiě)兩個(gè)是因?yàn)閪
在li里面有我用到border,IE5.x對(duì)border的解析與其他瀏覽器不一樣
margin/**/: 這樣的話~IE5.x是不認(rèn)識(shí)的~~
當(dāng)然還有其他的寫(xiě)法如:
voice-family :   "\"}\"";voice-family :inherit;等~
可參考http://bbs.51js.com/viewthread.php?tid=50475fpage=1

 



!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head>
title>li的簡(jiǎn)單應(yīng)用/title>
style type="text/css">
*{margin:0;padding:0;}
#test
{
width:300px;
margin:5px;
}
#test ul li
{
margin:3px;/* for IE5.x*/
margin/*\*/:1px;
list-style-type:none;
font:normal  normal normal #3212;px/2em  helvetica,Arial, verdana;
border:1px #004080 solid;
background: #fefefe url('http://bbs.51js.com/images/smilies/icon1.gif')  no-repeat left center;
padding-left:20px;

}

/style>
/head>
body>
div id="test">
ul>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
  li>測(cè)試列表的
/li>
/ul>
/div>
/body>
/html>
   提示:你可以先修改部分代碼再運(yùn)行

再加上類如日期之類的內(nèi)容


  引用: 
span定義為float:right 他會(huì)跟在后面 




!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head>
title>li的簡(jiǎn)單應(yīng)用/title>
style type="text/css">
*{margin:0;padding:0;}
#test
{
width:300px;
margin:5px;
}
#test ul li
{
margin:3px;/* for IE5.x*/
margin/*\*/:1px;
list-style-type:none;
font:normal  normal normal #3212;px/2em  helvetica,Arial, verdana;
border:1px #004080 solid;
background: #fefefe url('http://bbs.51js.com/images/smilies/icon1.gif')  no-repeat left center;
padding-left:20px;

}
#test ul li span
{
margin:0px 5px;
float:right;
}
/style>
/head>
body>
div id="test">
ul>
  li>span>12-11/span>測(cè)試列表的
/li>
  li>span>12-11/span>測(cè)試列表的
/li>
  li>span>12-11/span>測(cè)試列表的
/li>
  li>span>12-11/span>測(cè)試列表的
/li>
/ul>
/div>
/body>
/html>
   提示:你可以先修改部分代碼再運(yùn)行

再加更多的內(nèi)容
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head>
title>li的簡(jiǎn)單應(yīng)用/title>
style type="text/css">
*{margin:0;padding:0;}
#test
{
width:300px;
margin:5px;
}
#test ul li
{
margin:3px;/* for IE5.x*/
margin/*\*/:1px;
list-style-type:none;
font:normal  normal normal #3212;px/1em  helvetica,Arial, verdana;
border:1px #004080 solid;
}
#test ul li h4
{
font:normal  normal normal #3212;px/2em  helvetica,Arial, verdana;
padding-left:20px;
background: #fefefe url('http://bbs.51js.com/images/smilies/icon1.gif')  no-repeat left center;

}
#test ul li p
{
padding:2px;
}
#test ul li span
{
margin:0px 5px;
float:right;
}
/style>
/head>
body>
div id="test">
ul>
  li>h4>span>12-11/span>測(cè)試列表的/h4>
p>測(cè)試列表的測(cè)試列表的測(cè)試列表的測(cè)試列表的測(cè)試列表的/p>
/li>
  li>h4>span>12-11/span>測(cè)試列表的/h4>
p>測(cè)試列表的測(cè)試列表的測(cè)試列表的/p>
/li>
  li>h4>span>12-11/span>測(cè)試列表的/h4>
p>測(cè)試列表的測(cè)試列表的測(cè)試列表的/p>
/li>
  li>h4>span>12-11/span>測(cè)試列表的/h4>
p>測(cè)試列表的測(cè)試列表的測(cè)試列表的/p>
/li>
/ul>
/div>
/body>
/html>

標(biāo)簽:海東 遼源 陽(yáng)泉 南充 喀什 濱州 邯鄲 東莞

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《li的簡(jiǎn)單應(yīng)用》,本文關(guān)鍵詞  的,簡(jiǎn)單,應(yīng)用,的,簡(jiǎn)單,應(yīng)用,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《li的簡(jiǎn)單應(yīng)用》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于li的簡(jiǎn)單應(yīng)用的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 循化| 临武县| 沙田区| 会东县| 成都市| 双城市| 泌阳县| 茶陵县| 丹巴县| 安乡县| 平泉县| 德令哈市| 伽师县| 榕江县| 泰来县| 堆龙德庆县| 吉水县| 田阳县| 元谋县| 张掖市| 屏山县| 亚东县| 连云港市| 齐河县| 郴州市| 安顺市| 弥渡县| 郁南县| 隆安县| 拜泉县| 海晏县| 奉新县| 讷河市| 高雄市| 抚顺市| 治多县| 府谷县| 乡宁县| 开鲁县| 福建省| 泰来县|