html图片宽度高度等比例绽放,css图片自动绽放大小,左右,上下居中
.pic
{
max-height:400px;
max-width:400px;
_width:expression("400px");
_height:expression((document.documentElement.clientHeight||document.body.clientHeight)>400?"400px":"");
/*_width:expression((document.documentElement.clientWidth||document.body.clientWidth)>(document.documentElement.clientHeight||document.body.clientHeight)?"400px":"");*/
/*_height:expression(document.documentElement.clientWidth>document.documentElement.clientHeight?(document.documentElement.clientHeight*(400*2-68)/document.documentElement.clientWidth+"px"):"400px");*/
overflow:hidden;
margin-left:-55px;
margin-Right:-55px;
padding:0px;
}
table
{
width:400px;
height:400px;
border:0px;
border-collapse:collapse;
margin:0px;
padding:0px;
}
tr
{
margin:0px;
padding:0px;
width:400px;
height:400px;
}
td
{
text-align:center;
margin:0px;
padding:0px;
width:400px;
height:400px;
}
? ? ? ? ? ? ? ? ? ? |
? ? ? ? ? ? ? ? ? ? |
總結
以上是生活随笔為你收集整理的html图片宽度高度等比例绽放,css图片自动绽放大小,左右,上下居中的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 钉钉接龙怎么发起
- 下一篇: 用html制作篮球网页,篮球网站的设计与