缩略图的有关问题,麻烦知道的帮小弟我上,
缩略图的问题,麻烦知道的帮我下,急!!!!!!!!!
如何实现上传一张图片后不生成缩略图,但可以以等比例缩小或者放大的形式来显示图片,麻烦懂的附上代码,谢谢大家!
------解决方案--------------------
jquery 一大堆这样的插件.
------解决方案--------------------
上传一张图片后本来就不生成缩略图。
显示时设置width和height都试过了吗?
如果不行。就用js/jquery来实现吧。
------解决方案--------------------
有。生成缩略图。
------解决方案--------------------
把你的js代码用php实现,
或者找百度,嗖嗖一下php 图片缩放。例子一大堆
------解决方案--------------------
为什么要让php来干呢,觉得服务器还不够累嘛?展示的部分就交给展示的部分去处理好了.啥都让php来干...又不是为了生产缩略图......
------解决方案--------------------
只需单一的设置width或height即可,何必要用js?

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.
