SharePoint 2010自定Page Layout不改变core4.css加入自定义style和markup
2010-08-27 23:15
567 查看
Page Layout中加入:
<
PublishingWebControls
:
RichHtmlField
id
="Content"
FieldName
="PublishingPageContent"
runat
="server"
PrefixStyleSheet
="my-style-must-be-lowercase"/>
在core4.css后加入自己定义的css(可以在master page中加入style连接)
H1.my-style-must-be-lowercaseElement-H1
{
-ms-name
:"My
Heading"
;
font-size
:4em
;
font-weight
:normal
;
font-family
:
Impact
;
}
For the Style-Dropdown
.my-style-must-be-lowercaseStyle-Normal-1
{
-ms-name
:"My
Normal"
;
font-family
: Impact,
Arial,
sans-serif
;
font-size
:
8pt
;
color
:
#676767
;
background-color
: #fff
;
}
For the Font-Size-Dropdown
.my-style-must-be-lowercaseFontSize-1
{
font-size
: 36pt
;
}
For the Font-Face-Dropdown
.my-style-must-be-lowercaseFontFace-1
{
-ms-name
:"My
Impact"
;
font-family
: Impact
;
}
For the Font-Color-Dropdown
.my-style-must-be-lowercaseForeColor-1
{
-ms-name
: ""
;
-ms-color
:"Dark
Red"
;
color
:
darkred
;
}
.my-style-must-be-lowercaseThemeForeColor-1-0
{
/* [ReplaceColor(themeColor:
"Light1-Lightest")] */
color
: #F2F2F2
;
-ms-name
:"Light
1 Lightest"
;
/* [ColorName] */
-ms-color
:"White"
;
}
For the Highlight-Color-Dropdown
.my-style-must-be-lowercaseBackColor-1
{
background-color
: darkred
;
-ms-name
: ""
;
-ms-color
:"Dark
Red"
;
}
.my-style-must-be-lowercaseThemeBackColor-1-0
{
/* [ReplaceColor(themeColor: "Light1")]
*/
background-color
: #FFFFFF
;
-ms-name
:"Light
1"
;
/* [ColorName] */
-ms-color
:"White"
;
}
<
PublishingWebControls
:
RichHtmlField
id
="Content"
FieldName
="PublishingPageContent"
runat
="server"
PrefixStyleSheet
="my-style-must-be-lowercase"/>
在core4.css后加入自己定义的css(可以在master page中加入style连接)
H1.my-style-must-be-lowercaseElement-H1
{
-ms-name
:"My
Heading"
;
font-size
:4em
;
font-weight
:normal
;
font-family
:
Impact
;
}
For the Style-Dropdown
.my-style-must-be-lowercaseStyle-Normal-1
{
-ms-name
:"My
Normal"
;
font-family
: Impact,
Arial,
sans-serif
;
font-size
:
8pt
;
color
:
#676767
;
background-color
: #fff
;
}
For the Font-Size-Dropdown
.my-style-must-be-lowercaseFontSize-1
{
font-size
: 36pt
;
}
For the Font-Face-Dropdown
.my-style-must-be-lowercaseFontFace-1
{
-ms-name
:"My
Impact"
;
font-family
: Impact
;
}
For the Font-Color-Dropdown
.my-style-must-be-lowercaseForeColor-1
{
-ms-name
: ""
;
-ms-color
:"Dark
Red"
;
color
:
darkred
;
}
.my-style-must-be-lowercaseThemeForeColor-1-0
{
/* [ReplaceColor(themeColor:
"Light1-Lightest")] */
color
: #F2F2F2
;
-ms-name
:"Light
1 Lightest"
;
/* [ColorName] */
-ms-color
:"White"
;
}
For the Highlight-Color-Dropdown
.my-style-must-be-lowercaseBackColor-1
{
background-color
: darkred
;
-ms-name
: ""
;
-ms-color
:"Dark
Red"
;
}
.my-style-must-be-lowercaseThemeBackColor-1-0
{
/* [ReplaceColor(themeColor: "Light1")]
*/
background-color
: #FFFFFF
;
-ms-name
:"Light
1"
;
/* [ColorName] */
-ms-color
:"White"
;
}
相关文章推荐
- sharepoint 2010 用contenttype自定义表单显示页面 custom displayForm page by contenttype
- SharePoint 2010: Create a Custom Page Layout for a Publishing Site using SharePoint Designer
- SharePoint 2010自定义母版页小技巧——JavaScript和CSS引用
- SharePoint 2010自定义母版页小技巧——JavaScript和CSS引用
- Revert R12.1.3 Homepage Layout to Link Style as in R12.1.1 or 11i
- SharePoint 2010 自定义aspx页面装载PPS report空引用异常处理
- SharePoint 2010: Change welcome page on PowerShell
- how to add Javascript and CSS in page layout with sharepoint 2013
- SharePoint 2010 Base CSS Classes
- Sharepoint 2010 Form认证自定义登录页面,总是自动登录问题
- sharepoint 2010 自定义列表启用版本记录控制 如何在修改数据不产生新版本
- Revert R12.1.3 Homepage Layout to Link Style as in R12.1.1 or 11i
- 改变listview的item项的颜色、自定义expandlistview的group、item的颜色,改变、调用android.R.layout参数
- Sharepoint 2010 根据用户权限隐藏Ribbon菜单(利用css)
- SharePoint 2010-在ribbon上添加表单,将默认control加到自定义group中
- WebPart(SharePoint)中如何使用自定义的Javascript和css
- SharePoint 2010 master page 控件介绍(2):ribbon (一同事读听着像泪奔)
- SharePoint 2010 master page 控件介绍(5):其他
- 自定义 SharePoint 2010 快速启动栏和顶部链接栏
- sharepoint 2010 如何给文档库或自定义列表添加评论功能