<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Townes &#187; 添加悬浮公告栏</title>
	<atom:link href="https://thetownes.coolpage.biz/?feed=rss2&#038;tag=%E6%B7%BB%E5%8A%A0%E6%82%AC%E6%B5%AE%E5%85%AC%E5%91%8A%E6%A0%8F" rel="self" type="application/rss+xml" />
	<link>https://thetownes.coolpage.biz</link>
	<description>本站已转移至：http://www.thetownes.info</description>
	<lastBuildDate>Thu, 01 Aug 2013 11:49:56 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>非插件为网站添加悬浮公告栏</title>
		<link>https://thetownes.coolpage.biz/?p=360</link>
		<comments>https://thetownes.coolpage.biz/?p=360#comments</comments>
		<pubDate>Sat, 13 Jul 2013 14:31:28 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[日常技术]]></category>
		<category><![CDATA[添加悬浮公告栏]]></category>
		<category><![CDATA[非插件]]></category>

		<guid isPermaLink="false">http://thetownes.coolpage.biz/?p=360</guid>
		<description><![CDATA[觉得给网站加个公告不错，但是目前看到的都是在页首或者页尾显示公告条，很不爽，在h &#8230; <a href="https://thetownes.coolpage.biz/?p=360">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>觉得给网站加个公告不错，但是目前看到的都是在页首或者页尾显示公告条，很不爽，在http://wange.im 看到他的显示的不错，就仿了一下。</p>
<p>CSS没有修改，只是修改了显示内容。感觉跟我这个主题还是比较配的，你如果不喜欢就自己修改CSS</p>
<p>将以下代码加人footer.php（推荐）或者header.php，其中橙色部分为显示内容，你可以自己更改。支持html，php代码。</p>
<p>&lt;!–hellobaby–&gt; &lt;div id=”hellobaby” style=”top: 250px; “&gt; 欢迎来来到&lt;a href=”http://ishare.cn.ms” target=”_blank”&gt;ishare爱分享！&lt;/a&gt;&lt;br /&gt; &lt;b&gt;公告：&lt;/b&gt;这几天暂时不更新！ &lt;div&gt; &lt;a href=”javascript:void(0)” onclick=”$(‘#hellobaby’).slideUp(‘slow’);$(‘.closebox’).css(‘display’,&#8217;none’);” title=”关闭”&gt;×&lt;/a&gt; &lt;/div&gt; &lt;/div&gt;</p>
<p>以下代码加人style.css</p>
<p>/* Hello Baby */ #hellobaby{background:#000;border:1px solid #c8c8c8;color:#fff;font:1.4em/1.4 Arial,SimSun;padding:10px;position:absolute;right:0;top:250px;} #hellobaby .closebox{position:absolute;right:5px;top:0;} #hellobaby a{color:#F9BA46;} #hellobaby a:hover{color:#0073AF;} /*– Css3 –*/ #hellobaby{opacity:0.7;border-radius:5px 0 0 5px;}</p>
<p>转载自<a href="http://ishare.cn.ms/">iShare爱分享</a></p>
<p>&nbsp;</p>
<footer></footer>
]]></content:encoded>
			<wfw:commentRss>https://thetownes.coolpage.biz/?feed=rss2&#038;p=360</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
