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

Responsible

描述

Test your responsive website from the WordPress admin bar. This plugin uses the excellent Viewport Resizer bookmarklet to add a responsive button to the WordPress admin bar. Once pressed you can easily test your site in a range of common viewport sizes (e.g. iPhone, Tablet and Desktop).

The plugin is handy for testing during development and also for writers and editors to preview their content on different devices.

Banner illustration above by Gemma Garner.

a plugin by Scott Evans

屏幕截图

  • Admin bar button with activated viewport resizer toolbar
  • Viewing a website at iPhone dimensions

安装

To install this plugin:

  1. Upload the responsible folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it!

Alternatively you can search for the plugin from your WordPress dashboard and install from there.

常见问题

Hooks & Filters

The plugin has one filter that allows you register a custom bookmarklet. You can generate your own here.

add_filter('responsible_bookmarklet', 'custom_bookmarklet');

function custom_bookmarklet() {
    return '';  // add your generated JS/HTML here
}

评价

2016年10月15日
Very comfortably, no more need to open resource from smartphone!
2017年2月7日
I first heard about this plugin via the WordPress Plugins A to Z podcast. The name was catchy, so when I found myself doing responsive styling work today, I thought I'd try it out. All I can say, is that the interface alone makes this plugin stand out. Responsive coding can be painful, but this plugin adds order to what can become a nightmare of manually resizing your browser window. 5 stars from me. Very nice.
阅读所有8条评价

贡献者及开发者

“Responsible” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Responsible”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1

  • Only load CSS assets when admin bar is visible

1.0

  • Initial release