1.use the css style
<style type="text/css">
.content-width {MARGIN: auto;WIDTH: 600px;}
.content-width img{MAX-WIDTH: 100%!important;HEIGHT: auto!important;width:expression(this.width > 600 ? "600px" : this.width)!important;}
</style>
</head>
<body>
<div class="content-width">
<p><img src="/down/js/images/12567247980.jpg"/></p>
<p><img src="/down/js/images/12567247981.jpg"/></p>
</div>
2. use javascript code
<script language="JavaScript">
var imgObj;
for( i = 0; i < document.getElementsByTagName("img").length; i++ )
{
imgObj = document.getElementsByTagName("img")[i];
if ( imgObj.width > 400)
{
imgObj.width = 400
}
if ( imgObj.height > 400 )
{
imgObj.height = 400
}
}
</script>
分享到:
相关推荐
这个“Reduce-the-image-resolution.rar”压缩包显然是为VB初学者准备的一个教程或者代码示例,帮助他们理解如何在程序中实现这一功能。 图像分辨率是指图像中像素的数量,通常以宽度和高度的像素数表示,如800x600...
"reduce-image-uploader.zip" 提供了解决这一问题的解决方案,它利用Plupload这一强大的多文件上传库,实现了在上传前对图片进行压缩的功能,确保图片达到指定的大小,从而优化用户体验并减轻服务器负担。...
In this work, we go one step further and reduce the amount of required labeled data also from the source domain during training. To do so, we propose applying semi-supervised learning via a noise-...
-geometry geometry preferred size or location of the image -identify identify the format and characteristics of the image -ift implements the inverse discrete Fourier transform (DFT) -implode ...
This contains set of routines, for the expand and reduce operations of Gaussian Image Pyramids f
// If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. #ifdef...
GEE训练教程
In order to appropriately handle large raster imagery, the fundamental goal is to reduce the influence of the most limiting factors in mobile environments. In a clear departure from the traditional ...
High-dimensional data can be converted to low-dimensional codes by training a multilayer neural ...better than principal components analysis as a tool to reduce the dimensionality of data.
GEE训练教程
Image Processing Matlab his method assists to reduce time as well as afford the accuracy to detect malaria to certain extent.
在标题"PCA.rar_pca image_reduce"中,提到的是利用PCA方法来减少图像的维度。这种技术的主要目的是通过线性变换将原始高维数据转换为一组各维度线性无关的表示,同时尽可能保留原始数据的信息。 在描述中,“a ...
This programme is to calculate the principal component analysis (PCA) of a image. Naturally it is used to reduce the dmentionality of the image.
Finally, it repackages the apk with 7zip, which can reduce the package size obviously. AndResGuard is fast, and it does NOT need the source codes. Input an Android apk, then we can get a 'ResGuard' ...
In one click you can reduce the size of your Silverlight and Phone apps up to 70% and secure your code with obfuscation. Size Matters (in Silverlight) In one click you can reduce the size of your ...
is “artificial” and may reduce the recognition accuracy for the images or sub-images of an arbitrary size/scale. In this work, we equip the networks with another pooling strategy, “spatial pyramid ...
So you can reduce the dex files number and apk size. The plugin has been used on the mogujie app, the apk size is reduced by 1MB (the original apk size of 40MB), the number of DEX reduced by 3. ThinR...
reduce color image by FCM A.Ghorbanipour
In one click you can reduce the size of your Silverlight and Phone apps up to 70% and secure your code with obfuscation. In one click you can reduce the size of your Silverlight and Phone apps up to...
This code will compress any image. As DCT is a lossy compression hence it will reduce the size of the image with some losses.