{新手求助}Blogger模板问题
我也在新手区翻了翻,好像有类似的提问,但没有找到解决方法。如图,是更改代码的页面,还有一个上传项
我下载的BLOGGER模板都是一个压缩包
解压后大多是txt文本,里面是代码,有时会有一张图片,
现在的情况是不知怎么使用,
上传不知怎么使用,试过几次都显式错误
把下载的代码复制粘帖到代码页的话
就出现这样的错误
[quote]
我们无法保存您的模板。
请更正以下错误,然后再次提交您的模板。
由于格式错误,我们无法解析您的模板。请确保所有 XML 元素均已正确结束。
XML 错误信息:The content of elements must consist of well-formed character data or markup.
[/quote]
大致情况就是这样
求解~
先谢过~~:hug:
[img]http://i112.photobucket.com/albums/n174/chocoboplus/gfg.jpg[/img] 可能是txt文件的编码有问题吧,一般网站都用UTF-8,而微软默认的好像是GB码,打开说不定就会有乱码。
技术盲,纯属猜测,高手帮楼主解决吧。:lol 应该不是编码问题吧~
因为我试着下了好几个,都是同样的情况
这就是我下的包之一
[attach]119[/attach] 我用Mac系统自带的“文本编辑”打开你的txt文件不是乱码,我贴出来给你吧?
[quote]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="Shortcut Icon" href="http://replace.photobucket.com/albums/replace/imagex01.jpg">
<title><$BlogPageTitle$></title>
<$BlogMetaData$>
<style type="text/css">
/* -- basic html elements -- */
body {padding: 0; margin: 0; font: 75% Helvetica, Arial, sans-serif; color: #B4BABE; text-align: center;
background: transparent url(http://replace.photobucket.com/albums/replace/raino.jpg) bottom left no-repeat fixed;
}
a {color: #949ed0; font-weight: normal; text-decoration: none; }
a:visited {color: #8697ef;}
a:hover {color: #c1c8ec;}
h1 {margin: 0; color: ##B4BABE; font-size: 1.5em; }
h1 a {color: #7B8186;}
h2, #comments h4 { color: ##B4BABE; font-size: 1em; margin: 2em 0 0 0; color: ##B4BABE; background: transparent bottom right no-repeat; padding-bottom: 2px;border-bottom:thin dotted black;}
h3 {font-size: 1em; margin: 2em 0 0 0; background: transparent bottom left no-repeat; padding-left: 2px;padding-bottom: 1px;border-bottom:2px dashed #000;}
h4, h5 {font-size: 0.9em; text-transform: lowercase; letter-spacing: 2px;}
h5 {color: ##B4BABE;}
h6 {font-size: 0.8em; text-transform: uppercase; letter-spacing: 2px;}
p {margin: 0 0 1em 0;}
img, form {border: 0; margin: 0;}
/* -- layout -- */
#content {width: 738px; margin: 0 auto; text-align: left; }
#header {}
#header div {margin-left:50;margin-top:18px;width:450px;height:150px;}
#main {
line-height: 1.4;
float: left;
padding: 10px 25px;
border-top: solid 0px #fff;
width: 450px;
/* Tantek hack - http://www.tantek.com/CSS/Examples/boxmodelhack.html */
voice-family: "\"}\"";
voice-family: inherit;
}
/* IE5 hack */
#main {}
#sidebar {margin-left: 533px; border-top: solid 0px #fff; padding: 4px 0 0 7px; width:190px;}
#footer {clear: both; border-top: solid 0px #fff;}
#pcent {font-weight: normal; text-decoration: none;}
/* -- header style -- */
#header h1 {padding: 24px 0 12px 24px; width: 490px; line-height: 1;}
#header p {padding: 24px 0 12px 24px; width: 490px; line-height: 1;}
/* -- content area style -- */
#main {line-height: 1.4;}
h3.post-title {font-size: 1.2em; margin-bottom: 0;}
h3.post-title a {color: #B4BABE;}
.post {clear: both; margin-bottom: 4em;}
.post-footer em {color: #B4BABE; font-style: normal; float: left;}
.post-footer .comment-link {float: right;}
#main img {border: solid 0px #E3E4E4; padding: 2px; background: #fff;}
.deleted-comment {font-style:italic;color:gray;}
/* -- sidebar style -- */
#sidebar #description {border: solid 0px #B4BABE; padding: 10px 17px; color: #000; font-size: 1.2em; font-weight: normal; line-height: 0.9; margin: 0 0 0 -6px;width:190px;}
#sidebar h2 {font-size: 1.0em; margin: 1.3em 0 0.5em 0;background: transparent bottom right no-repeat; padding-bottom: 2px;}
#sidebar dl {margin: 0 0 10px 0;}
#sidebar ul {list-style: none; margin: 0; padding: 0;}
#sidebar li {padding-bottom: 5px; line-height: 0.9;}
#sidebar a {color: #949ed0; font-weight: normal; text-decoration: none;font-size: 0.9em; padding-left:1px; }
#sidebar a:visited {color: #8697ef; padding-left:1px;}
#sidebar a:hover {color:c1c8ec;
background-position:0 0;
background-repeat:no-repeat;
padding-left:1px;
border-bottom:1px dotted #98B952
}
.small{font-size: 0.8em;}
#profile-container {color: #B4BABE; }
#profile-container img {border: solid 1px #7C78B5; padding: 4px 4px 8px 4px; margin: 0 10px 1em 0; float: left;}
.archive-list {margin-bottom: 2em;}
#powered-by {margin: 10px auto 20px auto;}
/* -- sidebar style -- */
#footer p {margin: 0; padding: 12px 8px; font-size: 0.9em;}
#footer hr {display: none;}
</style>
</head>
<body>
<!-- Begin #content - Centers all content and provides edges for floated columns -->
<div id="content" style="LEFT: 24px; POSITION: absolute; TOP: 0px; visibility:visible; ">
<div id="header"><div >
<h1><ItemPage><a href="<$BlogURL$>"></ItemPage>
<$BlogTitle$>
<ItemPage></a></ItemPage></h1>
<p><$BlogDescription$></p>
</div></div>
<!-- Begin #main - Contains main-column blog content -->
<div id="main" align="justify">
<Blogger>
<BlogDateHeader>
<h2 class="date-header"><$BlogDateHeaderDate$></h2>
</BlogDateHeader>
<!-- Begin .post -->
<div class="post"><a name="<$BlogItemNumber$>"></a>
<BlogItemTitle>
<h3 class="post-title">
<BlogItemUrl><a href="<$BlogItemUrl$>" title="external link"></BlogItemUrl>
<$BlogItemTitle$>
<BlogItemUrl></a></BlogItemUrl>
</h3>
</BlogItemTitle>
<p><$BlogItemBody$></p>
<p class="post-footer">
<em>posted by <$BlogItemAuthorNickname$> @ <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em>
<BlogItemCommentsEnabled>
<a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>>Comments: <$BlogItemCommentCount$></a>
</BlogItemCommentsEnabled> <$BlogItemControl$>
</p>
</div>
<!-- End .post -->
<!-- Begin #comments -->
<!-- End #comments -->
</Blogger>
</div>
<!-- End #main -->
<!-- Begin #sidebar -->
<div id="sidebar">
<!-- Begin #profile-container -->
<$BlogMemberProfile$>
<!-- End #profile -->
<h2 class="sidebar-title">Previous Posts</h2>
<ul id="recently">
<BloggerPreviousItems>
<li><a href="<$BlogItemPermalinkURL$>"><$BlogPreviousItemTitle$></a></li>
</BloggerPreviousItems>
</ul>
<h2 class="sidebar-title">Archives</h2>
<ul class="archive-list">
<BloggerArchives>
<li><a href="<$BlogArchiveURL$>"><$BlogArchiveName$></a></li>
</BloggerArchives>
<ArchivePage><li><a href="<$BlogURL$>">Current Posts</a></li></ArchivePage>
</ul>
</MainOrArchivePage>
<!--
<rdf:RDF xmlns="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="">
<license rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.0/">
<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<permits rdf:resource="http://web.resource.org/cc/Distribution" />
<requires rdf:resource="http://web.resource.org/cc/Notice" />
<requires rdf:resource="http://web.resource.org/cc/Attribution" />
<prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" />
</License>
</rdf:RDF>
-->
<br>Blog Design By: <a
href="http://blogspottemplates.blogspot.com/">BlogSpot Templates</a><BR>
<!--
<p>This is a paragraph of text that could go in the sidebar.</p>
-->
</div>
<!-- End #sidebar -->
<!-- Begin #footer -->
<div id="footer">
<p>
<!-- This is an optional footer. If you want text here, place it inside these tags, and remove this comment. --> </p>
</div>
<!-- End #footer -->
</div>
<!-- End #content -->
</body>
</html>[/quote] :loveliness: 谢楼上试过了~
那个包里的我打开也只是一个TXT文本啊,我打开也不是乱码~
和你帖出来的是一样的````
不过还是谢谢你~
还是出现这样的信息:
我们无法保存您的模板。
请更正以下错误,然后再次提交您的模板。
由于格式错误,我们无法解析您的模板。请确保所有 XML 元素均已正确结束。
XML 错误信息:The content of elements must consist of well-formed character data or markup.
另外:
我下载了一个现在正用的模板,
当然,是blogger自带的,
是一个xml文件
如附件:
[attach]120[/attach]
继续求解~~
-____-! 没人能帮帮忙吗?
-_____||| — — 代码貌似没什么问题,在没中文的时候是不会出现乱码的。
不解 :Q
难道这里没有人用blogger吗? 坛里有很多人用啊,我自己也用过,but我的经验仅停留在老版上,新版没怎么研究过,Sorry! 建议具体问题查询GG派相关文章 楼上是blogspot hack大牛。。请抓住他别放,嘿嘿。
页:
[1]