how to use webpart container in kentico
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:;
margin-top:;
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:;
margin-top:;
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

how to use webpart container in kentico的更多相关文章
- Common webpart properties in kentico
		
https://devnet.kentico.com/docs/7_0/devguide/index.html?common_web_part_properties.htm HTML Envelope ...
 - Sharepoint中WebPart開發時註意的問題
		
1. 怎麼樣在WebPart中使用Sharepoint控件? 要在webpart中使用sharepoint控件必須先引用Microsoft.SharePoint.WebControls命名空間,如你現 ...
 - Transformation in kentico
		
https://docs.kentico.com/k10/developing-websites/loading-and-displaying-data-on-websites/writing-tra ...
 - 在docker中运行ASP.NET Core Web API应用程序(附AWS Windows Server 2016 widt Container实战案例)
		
环境准备 1.亚马逊EC2 Windows Server 2016 with Container 2.Visual Studio 2015 Enterprise(Profresianal要装Updat ...
 - .Container与.container_fluid区别
		
.Container与.container_fluid是bootstrap中的两种不同类型的外层容器,两者的区别是:.container 类用于固定宽度并支持响应式布局的容器..container-f ...
 - View and Data API Tips: Constrain Viewer Within a div Container
		
By Daniel Du When working with View and Data API, you probably want to contain viewer into a <div ...
 - [LeetCode] Container With Most Water 装最多水的容器
		
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). ...
 - 如何装最多的水? — leetcode 11. Container With Most Water
		
炎炎夏日,还是呆在空调房里切切题吧. Container With Most Water,题意其实有点噱头,简化下就是,给一个数组,恩,就叫 height 吧,从中任选两项 i 和 j(i <= ...
 - Docker - command in docker container
		
1.查看Container 里面运行的进程 在运行容器以后,可以查看里面的进程: docker top <container_id> or <container_name> 2 ...
 
随机推荐
- js继承的方式
			
深入理解继承的实现方式不仅仅有利于自己去造轮子,封装插件,更有利于我们去阅读一些框架的源码, 以下记录几种常见的继承方式 1. 原型链实现继承 function Father(){ this.name ...
 - Spring自定义拦截器
			
HandlerInterceptorAdapter由Spring MVC提供,用来拦截请求. 实现自定义拦截器需要继承HandlerInterceptorAdapter或实现HandlerInterc ...
 - HDU - 6266 - HDU 6266 Hakase and Nano (博弈论)
			
题意: 有两个人从N个石子堆中拿石子,其中一个人可以拿两次,第二个人只能拿一次.最后拿完的人胜利. 思路: 类型 Hakase先 Hakase后 1 W L 1 1 W W 1 1 1 (3n) L ...
 - Linux学习笔记记录(补充)
 - 第一章 Linux命令行简介
			
1 Linux系统命令操作语法的格式 命令_[参数选项]_[文件或路径] 其中 _ 至少一个空格 如:rm -f /etc/hosts 其中/etc/hosts完整路径不带空格 ...
 - JSP内置对象说明
			
JSP内置对象说明 制作人:全心全意 request对象:request对象封装了由客户端生成的HTTP请求的所有细节,主要包括HTTP头信息.系统信息.请求方式和请求参数等.通过request对象提 ...
 - Spring MVC--第一个程序
			
项目:primary 完成功能:用户提交一个请求,服务器端处理器在接收到这个请求后,给出一条欢迎信息,在响应页面中显示该信息. (1)导入jar包 在创建好web项目后,首先导入jar包.Spring ...
 - HDU 1540 区间合并线段树
			
题目大意: 就是给定一堆位置,进行删除还原,最后找到 t 位置上的最大连续位置 #include <cstdio> #include <cstring> #include &l ...
 - hdu  2545   并查集   树上战争
			
#include<stdio.h> #include<string.h> #define N 110000 struct node { int father,count ...
 - [bzoj1356]Rectangle[Baltic2009][几何常识乱搞]
			
虽然说是几何常识乱搞,但是想不到啊.. 题意:n个点取4个组成矩形,使面积最大,求面积. n<=1500 题解: 1.对角线相等且相互交于中点的四边形是矩形. 2.矩形四点共圆. 所以$n^2$ ...