css列表樣式
css列表屬性允許我們設置不同的列表項標記.在html中,有兩種類型的列表:
●無序列表(<ul>):列表項目用項目符號標記.
●有序列表(<ol>):列表項目用數字或字母標記.
使用css,列表可以進一步風格化,圖像可以用做列表項標記.
其中一種方法是使用list-style-type屬性,可以設置為:circle(。),square(■),decimal(十進制數字),disc(●),lower-alpha(小寫字母)等
html代碼:
<ol class="lower-alpha">
<li>美是戀人的贈品</li>
<li>生活有度,人生添壽</li>
<li>成功的秘籍在于恒心</li>
</ol>
<ul class="circle">
<li>人生如畫,歲月如歌</li>
<li>愛的匆忙,散得也快</li>
<li>生活便是尋求新的知識</li>
</ul>
<ul class="square">
<li>時間和潮流永不待人</li>
<li>愛情是兩個人的利己主義</li>
<li>自信和自靠是堅強的柱石</li>
</ul>
<ul class="disc">
<li>青年時魯莽,老年時悔恨</li>
<li>愛情是生命的鹽</li>
<li>只有登上山頂,才能看到那邊的風光</li>
</ul>
css代碼:
ol.lower-alpha{list-style-type:lower-alpha; }
ul.circle{ list-style-type:circle;}
ul.square{list-style-type: square;}
ul.disc{list-style-type: disc;}
效果如下:
body分為塊級和行內
<div>qwer<br/>zxcv</div>
<div style="background-color: green;">qwer</div>
span style="background-color: green;">zxcv</span>
<p>hahahahah</p>
<p>hahahahahaaa</p>
h1~h6y依次變小
<div>默認文字字體</div>
<h1>再再再再再粗一點</h1>
<h2>再再再再粗一點</h2>
<h3>再再再粗一點</h3>
<h4>再再粗一點</h4>
<h5>再粗一點</h5>
<h6>粗一點</h6>
<a href="http://www.baidu.com" title="baidu">百度</a>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>野雞平臺</title>
</head>
<body>
<h1>章節</h1>
<a href="#i1" title="第一章">第一章 寂寞的春天</a>
<a href="#i2" title="第二章">第二章 寂寞的夏天</a>
<a href="#i3" title="第三章">第三章 寂寞的秋天</a>
<a href="#i4" title="第四章">第四章 寂寞的冬天</a>
<h1>內容</h1>
<div style="height: 1000px;" id="i1">
<h3>第一章 寂寞的春天</h3>
<p>春暖花開,萬物復蘇,又到了交配的季節。</p>
</div>
<div style="height: 1000px;" id="i2">
<h3>第二章 寂寞的夏天</h3>
<p>夏天夏天悄悄過去留下小咪咪</p>
</div>
<div style="height: 1000px;" id="i3">
<h3>第三章 寂寞的秋天</h3>
<p>今年的秋天真是寂寞呀!!!</p>
</div>
<div style="height: 1000px;" id="i4">
<h3>第四章 寂寞的冬天</h3>
<p>下雪</p>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>野雞平臺</title>
</head>
<body>
<ul>
<li>周杰倫</li>
<li>林俊杰</li>
<li>王力宏</li>
</ul>
<ol>
<li>鐵錘</li>
<li>鋼彈</li>
<li>狗蛋</li>
</ol>
<dl>
<dt>河北省</dt>
<dd>邯鄲</dd>
<dd>石家莊</dd>
<dt>山西省</dt>
<dd>太原</dd>
<dd>平遙</dd>
</dl>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>6666</title>
</head>
<body>
<table border="3"> <!--border 選擇表格樣式-->>
<thead>
<tr>
<th>姓名</th>
<th>年齡</th>
<th>愛好</th>
</tr>
</thead>
<tbody>
<tr>
<td>xxxx</td>
<td>18</td>
<td>看書</td>
</tr>
<tr>
<td rowspan="3">aaaa</td> <!--rowspan 合并單元格-->>
<td>18</td>
<td>吃飯</td>
</tr>
<tr>
<td>33</td>>
<td>heiheihei</td>>
</tr>>
</tbody>
</table>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>6666</title>
</head>
<body>
<!--顯示本地圖片,找不到圖片則顯示alt中的文字-->
<img src="img/lover.png" alt="美女">
<!--顯示網絡圖片-->
<img src="https://images.cnblogs.com/cnblogs_com/wupeiqi/662608/t_212313579359018.png" alt="妹子">
</body>
</html>
type
<button type="button"> 按鈕 </button>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>666666</title>
</head>
<body>
<h3>文本框</h3>
<input type="text">
<h3>密碼框</h3>
<input type="password">
<h3>單選框</h3>
<input type="radio" name="gender">男
<input type="radio" name="gender">女
<h3>復選框</h3>
<input type="checkbox">籃球
<input type="checkbox">足球
<input type="checkbox">橄欖球
<h3>上傳文件</h3>
<input type="file">
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML學習</title>
</head>
<body>
<h3>單選</h3>
<select>
<option>上海</option>
<option>北京</option>
<option>深圳</option>
</select>
<h3>多選</h3>
<select multiple>
<option>上海</option>
<option>北京</option>
<option>深圳</option>
</select>
</body>
</html>
<!DOCTYPE html>
臥槽,無情呀
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML學習</title>
</head>
<body>
<textarea>文本內容寫在這里...</textarea>
</body>
</body>
</html>
用于提交數據到后臺
// 提交表單之后,實際上會將表單中的數據構造成一種特殊的結構,發送給后臺,類似于:
{
user:用戶輸入的姓名,
pwd:用戶輸入的密碼,
...
}
lt;marquee></marquee>文字滑動
<marquee behavior="slide"></marquee>滑動
<marquee behavior="scroll"></marquee>預設卷動
<marquee behavior="alternate"></marquee>來回卷動
<marquee direction="down"></marquee>向下卷動
<marquee direction="up"</marquee>向上卷動
<marquee direction="right"></marquee>向右卷動
<marquee direction="left"></marquee>向左卷動
<marquee loop="2"></marquee>循環次數, 默認值為:-1, 表示一直滾動下去。
<marquee width="180"></marquee>設定寬度
<marquee height="30"></marquee>設定高度
<marquee bgcolor="#FF0000"></marquee>設定背景顏色
<marquee scrollamount="30"></marquee>設定卷動距離(px)
<marquee scrolldelay="300"></marquee>設定卷動時間(毫秒)
<marquee hspace="100"></marquee> hspace 水平頁邊距
<marquee vspace="80"></marquee> vspace 垂直頁邊距
<marquee direction="left" behavior="scroll" width="300" height="400" bgcolor="#ff0" scrollAmount="50" scrollDelay="1000">
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
<li>JQ</li>
<li>BOOTSTRAP</li>
</ul>
</marquee>
以上整數涉及的單位是像素px
<marquee>
<img src="images/03.jpg" />
<img src="images/04.jpg" />
<img src="images/05.jpg" />
<img src="images/06.jpg" />
<img src="images/07.jpg" />
<img src="images/08.jpg" />
<img src="images/09.jpg" />
</marquee>
marquee常用到的兩個事件:
onmouseout="this.start()" 當鼠標移出該區域時
onbmouseover="this.stop()" 當鼠標移入該區域時
*請認真填寫需求信息,我們會在24小時內與您取得聯系。