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

wordpress 插件 文章 2020-01-25 18:20 534 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插件] Ajax Load More – WordPress infinite scrollAjax加载更多– WordPress无限滚动
[wordpress插件] Customers who viewed this also viewed that – WooCommerce看过此书的顾客也看过– WooCommerce
[wordpress插件] Direct checkout, Add to cart redirect, Quick purchase button, Buy now button, Quick View button for WooCommerce直接结帐,添加到购物车重定向,快速购买按钮,立即购买按钮,WooCommerce的快速查看按钮
[wordpress插件] TinyMCE RecoverTinyMCE恢复
[wordpress插件] DocxpressoDocxpresso
随便看看
微信开放平台的第三方平台,授权事件接收URL未被调用? 466
小程序云开发定时任务可以指定时间吗? 460
小程序现在可以获取到微信号了吗? 418
开发版和体验版<button open-type="getUserInfo">用户授权框没有弹出 389
怎么调用小程序名称呢? 427
wx.qy.login调用报错? 1075
wx.uploadFile上传文件失败? 668
商户JSAPI支付权限冻结!商户号为:1540221851 ,麻烦处理一下? 449
刚接触微信支付,问一个问题,大佬请进? 418
没有违规记录,但是搜索功能被限制? 407