首页 > wordpress插件 > nextgen gallrey详细参数-怎样调用单独图片Single Picture

nextgen gallrey详细参数-怎样调用单独图片Single Picture

2010年7月5日 发表评论 阅读评论

苗爹在这里给大家介绍运用nextgen gallrey 调用单独图片的参数

To show a single picture use the tag : [ singlepic id=x ]. It resizes and modify the picture on the fly (with no manipulation at the orginal picture) .

要显示单独的图片可以使用这样的标签:[ singlepic id=x ].它将重新调整和修改输出的图片,而不会运在原图上做任何更改。

Tag explanation :

调用单独图片的标签解释:

[ singlepic id=x w=width h=height mode=web20|watermark float=left|right ]
(without the spaces after/before the brakes)

  • id : this is the image id    id就是想要调用的图片的id
  • width : max. width (the resize method work propotional) 最大宽度(修改大小将保持原图的长宽比)
  • height : max. height 最大高度
  • mode (optional) : 模式(可选)
    • web20” : added a refelection effect 使用“web20”可添加镜面效果
    • watermark” : added a watermark, defined in the settings 使用“watermark”可添加水印,在设置里定义
  • float (optional) :  悬浮
    • left” : added CSS style float: left;  加入css样式悬浮
    • right” : added CSS style float: right; 加入css样式悬浮

Example : 例如
[ singlepic id=x h=height w=weight mode=web20 ]
(without the spaces after/before the brakes)

(请去掉方括号前后的空格)

leica-35-2.8-1

And a look on the watermark function :

看一下加水印的效果

[ singlepic id=150 h=300  mode=watermark ]
(without the spaces after/before the brakes)

(请去掉方括号前后的空格)

leica-35-2.8-2

本页英文部分引用于http://nextgen-gallery.com/singlepic/

插件的作者Alex Rabe

汉语部分由i981的苗爹自行翻译,如需引用请注明出处

原创文章,转载请注明: 转载自i981的世界

本文链接地址: nextgen gallrey详细参数-怎样调用单独图片Single Picture





  • 抱歉,获取相关宝贝失败,请正确设置API相关参数

海阔