[wordpress插件] Accordion Shortcode手风琴简码

wordpress 插件 文章 2020-01-25 18:20 597 0 全屏看文

AI助手支持GPT4.0

评分

96

96

描述

To make the accordions appear the way you want you need to add your own styling to them

要使手风琴以您希望的方式显示,您需要为其添加自己的样式

Lets you add accordion to your post and pages.

让您在您的帖子和页面中添加手风琴。

By using the following shortcodes

通过使用以下简码

[accordions]

  [手风琴]

[accordion title="title1"] tab content [/accordion]

[accordion title =“ title1”]标签内容[/ accordion]

[accordion title="title2"] another content tab [/accordion]

[accordion title =“ title2”]另一个内容标签[/ accordion]

[/accordions]

[/手风琴]

will generate the following html.

将生成以下html。

            

  
            

title1

            

title1             

 

 

Some Text
            

一些文字
            

            

            

title2

            

title2             

 

 

Some Text
            

一些文字
            

Additional attributes that you could pass into the shortcode
    

您可以传递给简码的其他属性
    

[accordions autoHeight=’true’ disabled=’false’ active=0 clearStyle=false collapsible=false fillSpace=false ]
    

[手风琴autoHeight ='true'已禁用='false'active = 0 clearStyle = false collapsible = false fillSpace = false]
    

[accordion title=’title1′ class=’new-class’]
     

[accordion title ='title1'class ='new-class']
     

Some Text
    

一些文字
    

[/accordion]
    

[/手风琴]
    

[accordion title=’title2′ class=’new-class’]
     

[accordion title ='title2'class ='new-class']
     

Some Text
    

一些文字
    

[/accordion]
    

[/手风琴]
    

[/accordions]

[/手风琴]

Sample CSS

示例CSS

Here is some sample css to get you started.

以下是一些示例CSS,可以帮助您入门。

Another place to look for it would be the http://jqueryui.com/themeroller/, The shortcode used the jQuery UI to generate the accordion.

寻找它的另一个地方是http://jqueryui.com/themeroller/,该短代码使用jQuery UI生成了手风琴。

.ui-accordion-header{    

  .ui-accordion-header {    

margin:5px 0 0;

边距:5px 0 0;

}

}

.ui-accordion-header a{    

.ui手风琴标题a {    

padding:5px 12px;    

padding:5px 12px;    

background: #CCC;    

背景:#CCC;    

color:#FFF;    

颜色:#FFF;    

display:block;

显示:块;

}

}

.ui-accordion-header.ui-state-active a,

.ui-accordion-header.ui-state-active a,

.ui-accordion-header a:hover{    

.ui-accordion-header a:hover {    

background-color: #DDD;

背景颜色:#DDD;

}

}

.ui-accordion-content{    

.ui手风琴内容{    

padding-top:10px;

padding-top:10px;

}

}

安装步骤

    1. Extract the zip file into wp-content/plugins/ in your WordPress installation
    2. 在您的WordPress安装中将zip文件提取到wp-content / plugins /

    3. Go to plugins page to activate
    4. 转到插件页面激活

    5. Add styles to make the accordion look the way you want.
    6. 添加样式以使手风琴看起来像您想要的样子。

下载地址

https://downloads.wordpress.org/plugin/accordion-shortcode.1.2.1.zip

https://downloads.wordpress.org/plugin/accordion-shortcode.1.2.1.zip

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] CodePicnicCodePicnic
[wordpress插件] Brandfolder – Digital Asset Management Simplified.Brandfolder –简化了数字资产管理。
[wordpress插件] Contact Form Generator : Creative form builder for WordPress联系表格生成器:WordPress的创意表格生成器
[wordpress插件] ClassiPress OnlineNaira GatewayClassiPress OnlineNaira网关
[wordpress插件] Dining Dashboard餐饮仪表板
随便看看
小程序注册:小额打款认证成功后,如何变为微信认证? 3377
对官方回复的疑问? 441
小程序 wx.login + code2Session 获取不到unionid ? 771
为啥要报这个错误呢? 418
已经授权位置信息还是一直报错?报getLocation:fail 频繁调用会增加电量损耗,可考虑使用 815
解密小程序的加密手机号 674
怎么覆盖掉前面的多个路由记录? 564
wx.getLocation 一直fail?,频繁调用会增加电量损耗... 2339
button open-type=getPhoneNumber 获取手机号码,工具弹窗报错? 625
wx.getLocation不支持基础库2.15吗? 560