Profil de jerry百无禁忌PhotosBlogListesPlus Outils Aide
28/01/2006

如何解决新版本msn space下“首页单篇日志网页效果”出现的空白

计数器   订阅我的space   返回首页   space研究原创和心得   For testing purpose   msn space技术交流区   心情记录  

 
(原创,转贴请注明作者和出处)
 
嫌麻烦的人请直接观看第二的通用办法
 
1.对于我的代码
 
很多人使用首页单篇日志的效果来用msn space实现网页效果,原教程请看如何实现日志网页效果。但是自从msn space前两两天升级到新版本後,这个特效就出现了问题,就是下面会出现很大一篇空白。如下图:
 
 
是不是很不很好看呢,没关系,有办法解决,我们稍微修改日志中的代码就可以了,custom html内的不用动。原来日志内的代码是按照下面格式写的:
 
<PRE></TABLE></TABLE></TABLE></TABLE>
自己编写的代码
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
举例,(效果请看:http://spaces.msn.com/assonuall/
 
<PRE></TABLE></TABLE></TABLE></TABLE>
<table width="1024" height="700" background="http://desktop.cc163.net/images/kat/20041221845461.jpg">
  <tr>
    <td valign="top">我是超人才怪</td>
  </tr>
</table>
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
这是以前的代码写发,现在这么写的话就会产生下面一个大空白,我们稍加修改:
 
<PRE></TABLE></TABLE></TABLE></TABLE>
<table width="1024" height="700" background="http://desktop.cc163.net/images/kat/20041221845461.jpg">
  <tr>
    <td valign="top">我是超人才怪</td>
  </tr>
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
发现两个代码的不同了吗? 没错,第二段代码少了中间自写代码最后那个绿色的</table>。也就是说你使用<table>标签的时候只要最後不做闭合就可以避免最后那一大块空白了。以次类推,如果我没有用他不了。直接:
 
<PRE></TABLE></TABLE></TABLE></TABLE>
我是超人才怪
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
如果是如上的代码,那么只要你在中间的自写代面前面加一个不闭合的<table>,那也同样可以避免那个空白。其实使用这个效果的都使用了table来排版,所以只要按照上面方法做最后不要闭合table标签就可以。
 
2.通用办法
 
注意: custom html内代码不变。
 
在日志代码部分的最后那一部分代码:
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
最开头加上一个<table>,另代码变为:
 
<table><PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
举例:
 
 
原来的代码,有空白部分的:
<PRE></TABLE></TABLE></TABLE></TABLE>
自己编写的代码
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
 
新代码, 没有了空白部分:
 
<PRE></TABLE></TABLE></TABLE></TABLE>
自己编写的代码
<table><PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>

                                                                              Creative Commons License
 

Commentaires (24)

Veuillez patienter...
Le commentaire entré est trop long. Raccourcissez-le.
Vous n'avez rien entré. Réessayez.
Il est actuellement impossible d'ajouter votre commentaire. Réessayez plus tard.
Pour ajouter un commentaire, tu dois avoir l'autorisation de tes parents. Demander l'autorisation
Tes parents ont désactivé les commentaires.
Il est actuellement impossible de supprimer votre commentaire. Réessayez plus tard.
Vous avez dépassé le nombre maximal de commentaires qu'il est possible d'envoyer le même jour. Réessayez dans 24 heures.
Votre compte a pu laisser les commentaires désactivés parce que nos systèmes indiquent que vous risquez d'arroser d'autres utilisateurs de messages. Si vous pensez que votre compte a été désactivé par erreur, contactez l'assistance en ligne de Windows Live.
Effectuez la vérification de sécurité ci-dessous pour finaliser l'envoi de votre commentaire.
Les caractères entrés pour la vérification de sécurité doivent correspondre à ceux de l'image ou du fichier audio.

Pour ajouter un commentaire, connectez-vous avec votre identifiant Windows Live ID (si vous utilisez Messenger ou Xbox LIVE, vous avez un identifiant Windows Live ID). Connectez-vous


Vous n'avez pas d'identifiant Windows Live ID ? Inscrivez-vous

3 Nov.
Aucun noma écrit :
Wan Moshou game, to (wow power leveling) site to buy the cheapest gold coins! To (wow gold) for the best Dailian upgrade!
18 Sept.
Aucun noma écrit :
Welcome to enter (wow gold) and (wow power leveling) trading site, (Rolex) are cheap, (World of Warcraft gold) credibility Very good! Quickly into the next single! Key words directly to the website click on transactions! -361597773689995
21 Août
xjqya écrit :
Cool~
My New Blog: http://xjhome.cn/blog
I made it my way.
17 Sept.
小妞a écrit :
我的单页日志是顶上空了好大一块哦~!!
我在模版中加了一张图片,可还是有空~!!
该怎么处理啊~!!
谢谢指点下哦~!!
10 Août
Ting Yea écrit :
我进不到我的主页了,一点击主页,浏览器就没反应,然后就关闭了,请问能解决么,谢谢!
23 Juil.
Image de Anonyme
文悦 a écrit :
我的主页显示不了日志了,怎么回事,是不是我照片贴得太多了
22 Mai
Nicky Suna écrit :
虽然进入我自己的space发现首页是单日志的形式,但是我完全按照你的语法输入,为什么首页没有一点儿内容呢...只是一片空白,难道是图片的来源不对...好象不太可能啊...因为我是在google上图片查找里复制的网址,应该不会有什么问题吧.请求指点...
11 Avr.
FEN CEa écrit :
只是我的主頁日志不見了,什麼解決呢?
6 Avr.
不知道 la écrit :
说的多了反而有点去里雾里....
其实就是在单篇日志的最后多加一个<table>就完了。
替所有喜爱特效的朋友感谢你提供了一个简便方法。
 
再给你提供一种方法:

再加一个CUSTOMHTML模块,把它放到最下面。

 

5 Mar.
Ki Ryo's·a écrit :
非常感谢!!!弄好了。嘻嘻。
24 Fév.
Siwei Guoa écrit :
不错的地方,会常来看看
15 Fév.
Junhui Yia écrit :
终于弄好了~
谢谢guo大~
Kiss Kiss~
14 Fév.
petrel 汪a écrit :
我的空间用了右侧扩展,就是没有那片白,能同时使用网页日志吗?/
9 Fév.
Cissya écrit :
请问,我发布了一篇日志,里面就只有一个滚动条,后来就没法在编辑页面编辑我的日志了,只能在预览里看到,可是却编辑不了,现在怎么办?
8 Fév.
思玮 陈a écrit :
3Q~我解决了~可是右边的空白哪里来的?
5 Fév.
补充一下:
这段代码是放在日志的最后面!
5 Fév.
我按照你的方法去做,可是不行哦!
我采用了 MSN工具箱 的方法:
<PRE></TR></Table><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE><TABLE style="DISPLAY: none"><TR><TD><DIV><TABLE></PRE>
可以了...=。= !!!
不过同样也谢谢你!
新年快乐
5 Fév.
建辉 劳a écrit :
我使用了单日记显示但是其他日记就没有办法显示了,也找不到固定的连接你能教教我吗
3 Fév.
D-boya écrit :
楼主说的这个是其中一个问题.还有一个问题不知道是否算的上.
 
就是同样的问题也出现在“首页单篇日志网页效果”右侧,也会有一段空白.不知道如何解决?(版面选择的是单版.)
31 Jan.