今天小编给大家分享一下id是html的属性吗的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一
顺晟科技
2022-09-15 22:14:22
187
| 星期一 | 星期二 | 星期三 | 星期四 | 星期五 | 星期六 | 星期日 | 第一节 | 数学 物理 数学 物理 数学第二节 | 数学 理科综合
|---|
上面实现代码:
View Code
<table border="4" cellspacing="0" cellpadding="0" width="700"
bgcolor="#FF9933" style="font-family:微软雅黑"
background="http://img.blog.163.com/photo/OoY9IQpDIiARTzjN732F3Q==/2297117284936237964.jpg">
<caption style="font-size:x-large; font-weight: bold;">课程表</caption>
<tr>
<th width="100" height="30"> </th>
<th width="100">星期一</th>
<th width="120">星期二</th>
<th width="100">星期三</th>
<th width="100">星期四</th>
<th width="200">星期五</th>
<th width="100">星期六</th>
<th width="100">星期日</th>
</tr>
<tr>
<th align="center" height="25">第一节</th>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
<td align="center" colspan="2" rowspan="4"
style="font-size:xx-large; font-weight: bold"
background="http://img.article.pchome.net/00/31/50/87/pic_lib/wm/1415470.jpg">
</td>
</tr>
<tr>
<th align="center" height="60">第二节</th>
<td align="center">数学</td>
<td align="center">
理科综合
<table border="1" width="100">
<tr>
<td align="center">化学</td>
<td align="center">物理</td>
</tr>
</table>
</td>
<td align="center">数学</td>
<td align="center">物理</td>
<td>今天连上两节课
<ol>
<li>语文</li>
<li>英语</li>
</ol>
</td>
</tr>
<tr>
<th align="center" height="30">第三节</th>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
</tr>
<tr>
<th align="center" height="25">第四节</th>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
<td align="center">物理</td>
<td align="center">数学</td>
</tr>
</table>
<textarea rows="10" cols="30">写点东西吧...</textarea>
<fieldset>
<legend>健康信息:</legend>
<form>
<label>身高:<input type="text" /></label>
<label>体重:<input type="text" /></label>
</form>
</fieldset>
上面的实现代码:
<html>
<body>
<select size="9">
<optgroup label="亚洲">
<option value="china">中国</option>
<option value="japan">日本</option>
</optgroup>
<optgroup label="美洲">
<option value="america">美国</option>
<option value="canada">加拿大</option>
</optgroup>
<optgroup label="欧洲">
<option value="england">英格兰</option>
<option value="france">法国</option>
</optgroup>
</select>
</body>
</html>
Good Morning~~~~
div-ClassBaidu a-Class
实现代码如下
<head>
<title></title>
<style type="text/css">
a{font-family:Courier New;font-size:medium;color:Red;}
.waring{background:Yellow;}
</style>
</head>
<body>
<a>Good Morning~~~~</a>
<div class="waring">div-Class</div>
<a href="http://www.baidu.com">Baidu</a>
<br />
<a class="waring">a-Class</a>
</body>
</html>
Baidu
新建*.css文件
a:visited{text-decoration:none}
a:active{text-decoration:none}
a:link{text-decoration:none}
a:hover{text-decoration:underline} 悬浮
调用上边的文件
<html>
<head>
<title></title>
<link type="text/css" rel="Stylesheet" href="/font.css" /> <!--调用上面的文件-->
</head>
<body>
<a href="http://www.baidu.com">Baidu</a>
</body>
</html>
效果:http://www.w3school.com.cn/tiy/t.asp?f=html_redirect
实现如下:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Refresh" content="5;url=http://www.w3school.com.cn"> </head> <body> </body> </html>
19
2022-10
19
2022-10
18
2022-10
02
2022-10
02
2022-10
02
2022-10