<?xml-stylesheet href="feed.css" type="text/css"?>
加至 <?xml version="1.0" encoding="utf-8"?> 下面即可~
如果是IE6(IE7和FF有自已的默认RSS样式,555~)可以访问 https://s5s5.me/feed.asp 来看效果,同时欢迎大家订阅本站哪,HOHO~
嘿嘿,附上我美化 rss2.0 格式的 xml (就是RSS,嘿嘿~)的 feed.css
@charset "utf-8";
* {
margin:0;
padding:0;
border:0;
font-family:Tahoma, Arial;
word-break:break-all;
word-wrap:break-word;
line-height:1.5;
}
rss {
display:block;
background:#E5F4D9 url(https://s5s5.me/styles/spring/images/bg.gif) no-repeat scroll left top;
font-size:14px;
color:#6c8c0a;
}
title {
display:block;
color:#6C8C0A;
font-size:16px;
font-weight:bold;
text-align:right;
padding:30px 30px 0 0;
}
link,
description,
language,
copyright,
webMaster,
generator,
pubDate {
display:block;
color:#6c8c0a;
font-size:12px;
text-align:right;
padding:0 30px 0 0;
}
language,
copyright,
webMaster,
generator,
pubDate { color:#7ccd26; }
item {
display:block;
margin:20px 30px;
text-align:right;
}
item title,
item link {
text-align:left;
padding:0;
}
item category,
item author,
item pubDate {
display:inline;
font-size:12px;
color:#7ccd26;
padding:0;
}
item description {
font-size:14px;
text-align:left;
text-indent:2em;
margin:0.5em 0;
padding:0;
}
item commentRss { font:0/0 normal; }
ttl,
item commentRss { display:none; }
* {
margin:0;
padding:0;
border:0;
font-family:Tahoma, Arial;
word-break:break-all;
word-wrap:break-word;
line-height:1.5;
}
rss {
display:block;
background:#E5F4D9 url(https://s5s5.me/styles/spring/images/bg.gif) no-repeat scroll left top;
font-size:14px;
color:#6c8c0a;
}
title {
display:block;
color:#6C8C0A;
font-size:16px;
font-weight:bold;
text-align:right;
padding:30px 30px 0 0;
}
link,
description,
language,
copyright,
webMaster,
generator,
pubDate {
display:block;
color:#6c8c0a;
font-size:12px;
text-align:right;
padding:0 30px 0 0;
}
language,
copyright,
webMaster,
generator,
pubDate { color:#7ccd26; }
item {
display:block;
margin:20px 30px;
text-align:right;
}
item title,
item link {
text-align:left;
padding:0;
}
item category,
item author,
item pubDate {
display:inline;
font-size:12px;
color:#7ccd26;
padding:0;
}
item description {
font-size:14px;
text-align:left;
text-indent:2em;
margin:0.5em 0;
padding:0;
}
item commentRss { font:0/0 normal; }
ttl,
item commentRss { display:none; }
瞎折腾,现在哪个浏览器没有默认 RSS 的 XML 样式,pia~pia~,枪毙枪毙~~~
BTW: 你的页面上什么 bug 哇,firebug 不停地跳,一会儿 100 Errors 了~~~
在RSS标签前面加上超过512字节的注释。。浏览器就不当成RSS处理了。。
@POPOEVER:我只是在想可能应用在其它的方面,比如在别的程序里调用IE就不会有默认XML样式的~ 这个是输入框的BUG吧,打一个字,一个Errors~
@aoao:有这种规定啊?不清楚啊~不过好象蛮正常啊~
zhen niu bi
XML下面还是用XSLT比较好一些
@s5s5: Maxthon调用IE, 你我的Feed在Maxthon中都是一样的样式, 而到IE7中又是另一种样式… 总之, 都是相同的.
@aoao: 有个疑惑, 这语句算不算注释?
贵州茅台家常旺
泸州酒业