3 lines
1.7 KiB
HTML
3 lines
1.7 KiB
HTML
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br /><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br /><title>无标题文档</title><br /></script><br /><style type="text/css"><br /><!--<br />body {<br /> margin-left: 0px;<br /> margin-top: 0px;<br /> margin-right: 0px;<br /> margin-bottom: 0px;<br />}</p>
|
|
<p><br />img<br />{<br /> <br /> width: expression_r(this.width > 200 && this.width > this.height ? 200 : true);<br /> height: expression_r(this.height > 160 ? 200 : true);<br /> <br /> max-width:200px;max-height:160px;<br /> min-width:0px;min-height:0px;<br /> <br /> position:static;<br /> +position:relative;<br /> top:-50%;left:-50%;<br />filter: Gray;<br />}<br /><br />div<br />{<br /> width:500px;<br /> height:360px;<br /> background:#000;<br /> overflow:hidden;<br /> position:relative;<br /> display:table-cell;<br /> text-align:center;<br /> vertical-align:middle;</p>
|
|
<p>}<br /><br />p<br />{<br /> <br /> position:static;<br /> +position:absolute;<br /> top:50%;<br /> background-color:#0F0;<br />}<br />--><br /></style></head><br /><body><br /><div><p><a href="#"><img src="Chrysanthemum.jpg"/></a></p></div><br /></body><br /></html></p> |