apply stylesheet 方法

上次修改时间: 2010年3月23日

适用范围: SharePoint Foundation 2010

将客户端应用程序中的级联样式表链接到页面或整个网站。在未打开页面时,此方法用于将样式表用作链接。请注意,Microsoft FrontPage Server Extensions 将该样式表视为主题,以便 apply_opt 参数可确定如何应用样式表。

在 Microsoft FrontPage 上,单击"格式"菜单上的"样式表链接",以显示"链接样式表"对话框。单击"所有网页"或"所选页面",然后单击"添加"以输入要使用的样式表的 URL。

method=apply stylesheet:server_extension_version
&service_name=/&link_list=list_of_links&url_list=list_of_URLs 
&apply_opt=(web|page[rfi])[&validateWelcomeNames=(true|false)]

参数

service_name 参数

link_list 参数

url_list 参数

apply_Opt 参数

validateWelcomeNames 参数

解码

POST /site_url/_vti_bin/_vti_aut/author.dll HTTP/1.0
. 
. 
.
method=apply+stylesheet:6.0.n.nnnn
&service_name=/
&apply_opt=web,rfi
&link_list=[file:///local_drive:/full_path/file_name.css;
http://host_name/site_name/directory_name/file_name.css]
&url_list=[_borders/top.xml;_borders/left.xml;_borders/bottom.xml;pr02.xml]

请参阅

概念

SharePoint Foundation 的服务器版本