how to use webpart container in kentico
生活随笔
收集整理的這篇文章主要介紹了
how to use webpart container in kentico
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
https://docs.kentico.com/k11/developing-websites/developing-websites-using-the-portal-engine/using-web-part-containers?
Webpart Container
webpart container中的orangebox,
?
SELECT * FROM dbo.CMS_WebPartContainer WHERE ContainerDisplayName LIKE '%orange%';?
把StyleSheet綁定給站點使用
?
?
站點使用CSS StyleSheet
orangeBox必須要綁定這個stylesheet,否則無法正常顯示
.orangeBox .title {background: url("~/App_Themes/CorporateSite/Images/orangebox.png") repeat-x scroll 0 0 #e56814;color: #ffffff;font-size: 140%;margin-bottom: 0;margin-top: 0;padding: 8px 10px; }?
?
SELECT * FROM dbo.CMS_CssStylesheet WHERE StylesheetText LIKE '%orangebox%';?
分析
首先在style sheet中定義好class
.orangeBox {border: 1px solid #f59045;margin-bottom: 15px; }.orangeBox .title {background: url("~/App_Themes/CorporateSite/Images/orangebox.png") repeat-x scroll 0 0 #e56814;color: #ffffff;font-size: 140%;margin-bottom: 0;margin-top: 0;padding: 8px 10px; }.orangeBox .content {padding: 5px; }?
在webpart container中使用定義好的css
<div class="orangeBox"> <h3 class="title">{%ContainerTitle%}</h3> <div class="content">□</div> </div>第四行中的□代表的是webpart
?
在webpart的webpart container屬性中設置使用哪一個webpart container
?
轉載于:https://www.cnblogs.com/chucklu/p/9047388.html
總結
以上是生活随笔為你收集整理的how to use webpart container in kentico的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 做梦梦到孕妇掉水里了是什么意思
- 下一篇: 梦到盆子破了什么意思