Title: Responsive Image Widget
Author: benarobinson
Published: <strong>2013 年 7 月 9 日</strong>
Last modified: 2013 年 7 月 22 日

---

搜索插件

![](https://ps.w.org/responsive-image-widget/assets/banner-772x250.png?rev=738437)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/responsive-image-widget_949fa2.svg)

# Responsive Image Widget

 作者：[benarobinson](https://profiles.wordpress.org/benarobinson/)

[下载](https://downloads.wordpress.org/plugin/responsive-image-widget.zip)

 * [详情](https://cn.wordpress.org/plugins/responsive-image-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/responsive-image-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/responsive-image-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/responsive-image-widget/#developers)

 [支持](https://wordpress.org/support/plugin/responsive-image-widget/)

## 描述

A very simple widget that displays a single responsive, rationally proportional 
image in a widget area. Intended to make adding images (whose proportions are important)
to sidebar areas easier for non-technical users who would have trouble using the
text widget to insert images into the sidebar.

One of its key features is the fact that it allows proportional adjustment on the
fly, so the user can easily change the proportion of the image inside of WordPress,
instead of needing to resize the image in an editor (a problem for many users who
do not have a lot of experience resizing/cropping images.) Basically, it creates
a frame for an image rather than adding an image directly, and the frame size can
be set before the image is added, much like in Adobe inDesign, where frames can 
be laid out and then have pictures inserted into them.

It takes a title, image URL, ratio and target link URL. It outputs a rationally 
proportional div with the image set as a background. Using the CSS background-size
and background-position properties, the image always fills the whole space and remains
centered.

Note: the image _always_ fills the width of its container. If the widget/widget 
area where the image is placed is large, the image will appear large.

## 屏幕截图

[⌊The widget controls.⌉⌊The widget controls.⌉[

The widget controls.

[⌊A vertical image frame.⌉⌊A vertical image frame.⌉[

A vertical image frame.

[⌊A square image frame.⌉⌊A square image frame.⌉[

A square image frame.

[⌊A very horizontal image frame.⌉⌊A very horizontal image frame.⌉[

A very horizontal image frame.

## 安装

 1. Upload `responsive_image_widget.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place widget(s) in your sidebar areas through ‘Appearance > Widgets’ in WordPress

## 常见问题

  The image is cropping badly. It is centered and I really wanted to see the top/
bottom right/left corner. Can I change how the image crops?

Yes, you can control which edge the image crops from by selecting a side in the “
Crop From” dropdown.

  Help! The image is gigantic and/or pixelated!

The image _always_ fills 100% of the containing widget it is in. If the widget/widget
area where the image is placed is large, the image will appear large. Use an image
that is larger than the widget area you plan to use it in to avoid pixelation.

## 评价

![](https://secure.gravatar.com/avatar/9c1d3a0a896c7ebf2a5cc0c250737de06bfc91ea9c4a680990a57cf71825d3c6?
s=60&d=retro&r=g)

### 󠀁[1 pic](https://wordpress.org/support/topic/1-pic/)󠁿

 [Den999](https://profiles.wordpress.org/den999/) 2017 年 2 月 7 日

Sorry, only one insert image by the URL, and only one picture for all pages – this
is not a plugin. I don’t know what is it.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/)

## 贡献者及开发者

「Responsive Image Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ benarobinson ](https://profiles.wordpress.org/benarobinson/)

[帮助将「Responsive Image Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/responsive-image-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/responsive-image-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/responsive-image-widget/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/responsive-image-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/responsive-image-widget/)。

## 更新日志

#### 1.1

 * Added “Crop From” feature to help position image in frame.

#### 1.2

 * Added !important to CSS background property to prevent overwrite by theme styles.

#### 1.3

 * Added inline style for anchor element to display: block to make sure image displays.

#### 1.4

 * Fixed version update problem.

## 额外信息

 *  版本 **1.4**
 *  最后更新：**13 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/responsive-image-widget/)
 * 标签
 * [easy](https://cn.wordpress.org/plugins/tags/easy/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [responsive](https://cn.wordpress.org/plugins/tags/responsive/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/responsive-image-widget/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/responsive-image-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/responsive-image-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/responsive-image-widget/reviews/)

## 贡献者

 *   [ benarobinson ](https://profiles.wordpress.org/benarobinson/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/responsive-image-widget/)