摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" con<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 塊級元素:對寬高屬性生效,如果不給寬度,塊級元素就默認(rèn)瀏覽器的寬度(即就是100%的寬)
例如: div p ul h1-h6...
-->
<!-- 行內(nèi)元素:對寬高屬性不生效,完全靠內(nèi)容撐開寬高,可以跟其他標(biāo)簽存在一行
例如:span b strong em a img input...
-->
<!--行內(nèi)塊標(biāo)簽:結(jié)合行內(nèi)和塊級元素的特點(diǎn),不僅對寬高的屬性說生效還可以和多個 標(biāo)簽存在一行
例如:input img
-->
<div style="background:red;height:300px;width:300px;"> 456 </div>
<p style="background:yellow;">123</p>
<span style="background:yellow;height:300px;width:300px;">456456465456</span><b>7887</b>
<img alt="45" src="6266BB2D406549EE4B30CF738B030816.jpg" style="height:300px;width:300px;">
</body>
</html>