-
- xhtml2.0 里src的新用法
- Weather:多云 ,西南风 5-6级 ,最高气温29 ℃
- 2005-08-11
在W3C于今年5月27号发布的第七修正版xhtml2规范里面,我看到了下面这一段关于src的用法
<script src="pop" type="application/x-javascript, text/x-newspeak" />
<style src="midnight" type="text/css, text/x-mystyle" />
<p src="w3c-logo" type="image/png, image/jpeg;q=0.2">W3C logo</p>
<span src="logo.png">Our logo</span>
<span src="theme.mp3" type="audio/x-mpeg">Our theme jingle</span>
<p src="holiday.png" srctype="image/png">
<span src="holiday.gif" srctype="image/gif">
An image of us on holiday.
</span>
</p>
<table src="temperature-graph.png" srctype="image/png">
<caption>Average monthly temperature over the last 20 years</caption>
<tr><th>Jan</th><th>Feb</th><th>Mar</th><th>Apr</th><th>May</th><th>Jun</th>
<th>Jul</th><th>Aug</th><th>Sep</th><th>Oct</th><th>Nov</th><th>Dec</th>
</tr>
<tr><td> 4</td><td> 2</td><td> 7</td><td> 9</td><td>13</td><td>16</td>
<td>17</td><td>17</td><td>14</td><td>11</td><td> 7</td><td> 4</td>
</tr>
</table>在其scrType=ContentTypes里面提到,ContentTypes可能为“空”,为“空”时指指定标签内无内容。
当然在xhtml2中还有很多其它的补充,并且现在的浏览器也能支持很大一部分了,但是在web design的时候还是要慎用的,因为在一些低版本浏览器中,用这些新潮的东西做出来的显示效果将是灾难性的。
新技术,我们还是要学习的。
-
Views(4290) | Comments(0) |
In:
网页前端技术
|
(08/10)
年薪20万,某公司(400人)招聘总经理的真实笔试题!!!
