求CSS图片等比例缩放代码

html-css010

求CSS图片等比例缩放代码,第1张

加载Jquery

$(function(){

if($(".pic").width()>630)

{

$(".pic").css("width","630px")

}

})

banner a.btn_prev:hover { background-position:-200px -350px}

设置的是banner上向左的按钮在鼠标经过时的背景图像的位置

-200px是x轴的坐标,-350px是y轴的坐标

你要修改的图片的大小,应该是修改.banner_pic ul li里的width:630px

这个参数修改好以后再适当修改

.banner_pic 里的width和height

.banner_pic ul 里的height

应该就能达到目的

<table cellpadding="0" cellspacing="0" border="0" width="1003" height="115" align="center">

<tr><td>

<iframe frameborder="0" id="header" name="header" src="header.php" scrolling="no" style="height: 115pxwidth: 1003pxmargin:0px auto"></iframe>

</td></tr></table>

<table border="0" cellPadding="0" cellSpacing="0" height="630" width="1003" align="center" style="table-layout: fixed">

<tr>

<td width="183"><iframe frameborder="0" id="menu" name="menu" src="left.php" scrolling="yes" style="height: 100%visibility: inheritwidth: 100%z-index: 1overflow: auto"></iframe></td>

<td><iframe frameborder="0" id="main" name="main" src="right.php" scrolling="yes" style="height: 100%visibility: inheritwidth: 100%z-index: 1overflow: auto"></iframe></td>

</tr>

</table>