cnblogs.com的html文件
This commit is contained in:
61
dcrenl/网页图片垂直剧中 等比例缩放 黑白显示(1).html
Normal file
61
dcrenl/网页图片垂直剧中 等比例缩放 黑白显示(1).html
Normal file
@@ -0,0 +1,61 @@
|
||||
<div id="sina_keyword_ad_area2" class="articalContent ">
|
||||
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br />
|
||||
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">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><ahref="#"><imgsrc="Chrysanthemum.jpg"/></a></p></div><br />
|
||||
</body><br />
|
||||
</html><br />
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<p> </p>
|
||||
Reference in New Issue
Block a user