原来就是这一句啊

程序代码 程序代码
<?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; }
打赏