无标题文档
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
img
{
width: expression_r(this.width > 200 && this.width > this.height ? 200 : true);
height: expression_r(this.height > 160 ? 200 : true);
max-width:200px;max-height:160px;
min-width:0px;min-height:0px;
position:static;
+position:relative;
top:-50%;left:-50%;
filter: Gray;
}
div
{
width:500px;
height:360px;
background:#000;
overflow:hidden;
position:relative;
display:table-cell;
text-align:center;
vertical-align:middle;
}
p
{
position:static;
+position:absolute;
top:50%;
background-color:#0F0;
}
-->
查看更多关于网页图片垂直剧中等比例缩放黑白显示_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did105929