<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>评论: 你问我答(27)——使用CSS定位页面的“footer”</title>
	<link>http://learning.artech.cn/20080328.css-footer-position.html</link>
	<description>学习在前沿！这里是“前沿视频教室”，在这里您可以找到关于各种网页设计/网站开发/Flash动画相关的内容，而且我们都通过视频演示的方式，直观地向您讲解！包括CSS/Javascript/Flash/Dreamweaver/Fireworks/Photoshop等软件的使用和技巧!</description>
	<pubDate>Wed, 08 Feb 2012 04:19:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-8836</link>
		<author>温谦</author>
		<pubDate>Tue, 21 Apr 2009 01:26:53 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-8836</guid>
		<description>小陈,

这个问题并非一两句话可以说清的，也没有一个标准答案。

大致原则是，如果在标准流中搞不定的事情，考虑用相对定位和绝对定位，如果需要左右分列，考虑用浮动。</description>
		<content:encoded><![CDATA[<p>小陈,</p>
<p>这个问题并非一两句话可以说清的，也没有一个标准答案。</p>
<p>大致原则是，如果在标准流中搞不定的事情，考虑用相对定位和绝对定位，如果需要左右分列，考虑用浮动。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 小陈</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-8823</link>
		<author>小陈</author>
		<pubDate>Mon, 20 Apr 2009 09:02:47 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-8823</guid>
		<description>在用到那个定位的时候。绝对定位~相对定位~固定定位~浮动定位要怎么理解。什么时候用到绝对定位。。
  什么时候用到相对定位。什么时候用到固定定位。和浮动定位</description>
		<content:encoded><![CDATA[<p>在用到那个定位的时候。绝对定位~相对定位~固定定位~浮动定位要怎么理解。什么时候用到绝对定位。。<br />
  什么时候用到相对定位。什么时候用到固定定位。和浮动定位</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 使用CSS定位页面的“footer” &#124; 青色's Blog</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-6345</link>
		<author>使用CSS定位页面的“footer” &#124; 青色's Blog</author>
		<pubDate>Sat, 29 Nov 2008 06:27:29 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-6345</guid>
		<description>[...] 原文地址：http://learning.artech.cn/20080328.css-footer-position.html [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] 原文地址：http://learning.artech.cn/20080328.css-footer-position.html [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5434</link>
		<author>温谦</author>
		<pubDate>Thu, 23 Oct 2008 09:18:21 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5434</guid>
		<description>赶美超印，

抱歉，不知道您说的“弧度”是什么意思？您有什么具体的页面用到吗？把URL贴过来，我看一看？</description>
		<content:encoded><![CDATA[<p>赶美超印，</p>
<p>抱歉，不知道您说的“弧度”是什么意思？您有什么具体的页面用到吗？把URL贴过来，我看一看？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 赶美超印</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5430</link>
		<author>赶美超印</author>
		<pubDate>Thu, 23 Oct 2008 04:24:38 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5430</guid>
		<description>老师您好！

我不晓得弧度在网页中的运用，您能给我一个事例吗？</description>
		<content:encoded><![CDATA[<p>老师您好！</p>
<p>我不晓得弧度在网页中的运用，您能给我一个事例吗？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5351</link>
		<author>温谦</author>
		<pubDate>Sun, 19 Oct 2008 05:54:17 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5351</guid>
		<description>指教不敢当，大家多交流。找一个自己喜欢的方向，多发掘！

欢迎常来这里交流。</description>
		<content:encoded><![CDATA[<p>指教不敢当，大家多交流。找一个自己喜欢的方向，多发掘！</p>
<p>欢迎常来这里交流。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5350</link>
		<author>温谦</author>
		<pubDate>Sun, 19 Oct 2008 05:52:04 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5350</guid>
		<description>抱歉，这个我不知道怎么搞。</description>
		<content:encoded><![CDATA[<p>抱歉，这个我不知道怎么搞。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: fan_ni</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5339</link>
		<author>fan_ni</author>
		<pubDate>Sun, 19 Oct 2008 04:44:39 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5339</guid>
		<description>温老师啊
还有XHTML*CSS书中有一点讲道
弧度的运用，没有具体的实例，我现在还不明白！
你能不能给个实例！

我想可以用它可以设置个斜区块，您说呢？</description>
		<content:encoded><![CDATA[<p>温老师啊<br />
还有XHTML*CSS书中有一点讲道<br />
弧度的运用，没有具体的实例，我现在还不明白！<br />
你能不能给个实例！</p>
<p>我想可以用它可以设置个斜区块，您说呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: fan_ni</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5338</link>
		<author>fan_ni</author>
		<pubDate>Sun, 19 Oct 2008 04:36:49 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5338</guid>
		<description>你好，老师！
我不是学平面设计的，现在没从事艺术了，不过我还是非常喜欢艺术方面的专业！尤其是对网页美工
方面感兴趣，所以.........
以后还要望老师多多指教！</description>
		<content:encoded><![CDATA[<p>你好，老师！<br />
我不是学平面设计的，现在没从事艺术了，不过我还是非常喜欢艺术方面的专业！尤其是对网页美工<br />
方面感兴趣，所以&#8230;&#8230;&#8230;<br />
以后还要望老师多多指教！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5317</link>
		<author>温谦</author>
		<pubDate>Fri, 17 Oct 2008 09:59:14 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5317</guid>
		<description>fan_ni ，

您是希望在把文字放在一个多变形区域内，自动填充这个区域，来进行页面的布局吗

这个据我所知，即使CSS3也不支持~~~

您是不是以前是做平面设计排版的，比如Indesign、Pagemaker之类用惯了？至少目前，网页上还实现不了。

当然，如果硬要做，个别的要求可以，比如说，你可以用若干个矩形盒子拼成一个斜的形状，利用浮动形成文字环绕效果。不过没有通用的方法。</description>
		<content:encoded><![CDATA[<p>fan_ni ，</p>
<p>您是希望在把文字放在一个多变形区域内，自动填充这个区域，来进行页面的布局吗</p>
<p>这个据我所知，即使CSS3也不支持~~~</p>
<p>您是不是以前是做平面设计排版的，比如Indesign、Pagemaker之类用惯了？至少目前，网页上还实现不了。</p>
<p>当然，如果硬要做，个别的要求可以，比如说，你可以用若干个矩形盒子拼成一个斜的形状，利用浮动形成文字环绕效果。不过没有通用的方法。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: fan_ni</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-5310</link>
		<author>fan_ni</author>
		<pubDate>Fri, 17 Oct 2008 09:21:37 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-5310</guid>
		<description>老师啊
有个网页反面的问题困饶我好久了

就是在网页中怎样添加一个斜线而非图片
或者说添加一个斜区块，如三角行区块，五边行之类的！
你能告诉我吗？？</description>
		<content:encoded><![CDATA[<p>老师啊<br />
有个网页反面的问题困饶我好久了</p>
<p>就是在网页中怎样添加一个斜线而非图片<br />
或者说添加一个斜区块，如三角行区块，五边行之类的！<br />
你能告诉我吗？？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2270</link>
		<author>温谦</author>
		<pubDate>Wed, 02 Apr 2008 07:15:16 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2270</guid>
		<description>哦，我这就明白您的意思了！

谢谢您的补充，很不错！我觉得用纯CSS好像无法实现自动调整padding。用JS调整padding-bottom似乎是最好的解决方法了，如果你的页面上用了jQuery的话，改这个属性一行代码就可以了。

对于大多数网站，footer似乎是最稳定的部分了，高度一般不会经常改变，当然要是能够自动适应，是最好了。</description>
		<content:encoded><![CDATA[<p>哦，我这就明白您的意思了！</p>
<p>谢谢您的补充，很不错！我觉得用纯CSS好像无法实现自动调整padding。用JS调整padding-bottom似乎是最好的解决方法了，如果你的页面上用了jQuery的话，改这个属性一行代码就可以了。</p>
<p>对于大多数网站，footer似乎是最稳定的部分了，高度一般不会经常改变，当然要是能够自动适应，是最好了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: BlackOut</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2268</link>
		<author>BlackOut</author>
		<pubDate>Wed, 02 Apr 2008 07:13:24 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2268</guid>
		<description>我说的就是这个问题,footer的高度如果经常调整呢?不能总是手动地改padding-bottom吧?不过用js改padding-bottom似乎比插入元素的方法要好一些^_^,看来用CSS解决不了这个问题了.再次感谢您的回答!</description>
		<content:encoded><![CDATA[<p>我说的就是这个问题,footer的高度如果经常调整呢?不能总是手动地改padding-bottom吧?不过用js改padding-bottom似乎比插入元素的方法要好一些^_^,看来用CSS解决不了这个问题了.再次感谢您的回答!</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2266</link>
		<author>温谦</author>
		<pubDate>Wed, 02 Apr 2008 07:00:24 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2266</guid>
		<description>BlackOut ，

我不确认您是否理解了上面文章的意思。在这种方案中，footer是压住了contetn的一部分，所以用padding-bottom让出这个footer盖住的空间。

至于您说的文字内容超过满屏，我试了似乎没有问题啊，我不确认您到底遇到的问题是什么，希望实现的效果是什么？测试的时候您不需要加长测试页面，只需要把浏览器窗口变窄，变短一些，就可以出现滚动条了，就看到文字长度超过浏览器窗口高度的情况了。</description>
		<content:encoded><![CDATA[<p>BlackOut ，</p>
<p>我不确认您是否理解了上面文章的意思。在这种方案中，footer是压住了contetn的一部分，所以用padding-bottom让出这个footer盖住的空间。</p>
<p>至于您说的文字内容超过满屏，我试了似乎没有问题啊，我不确认您到底遇到的问题是什么，希望实现的效果是什么？测试的时候您不需要加长测试页面，只需要把浏览器窗口变窄，变短一些，就可以出现滚动条了，就看到文字长度超过浏览器窗口高度的情况了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: BlackOut</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2264</link>
		<author>BlackOut</author>
		<pubDate>Wed, 02 Apr 2008 06:42:13 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2264</guid>
		<description>我暂时用了个较笨的JS解决,希望能有CSS解决方案
JS代码:
&#60;script type=&#34;text/javascript&#34;&#62;
&#60;!--
window.onload=function(){
var addheight=document.getElementById(&#34;footer&#34;).scrollHeight;
var addel=document.createElement(&#34;div&#34;);
addel.style.cssText=&#34;height:&#34;+addheight+&#34;;padding-top:20px&#34;;
document.getElementById(&#34;container&#34;).appendChild(addel);
};
// --&#62;
&#60;/script&#62;</description>
		<content:encoded><![CDATA[<p>我暂时用了个较笨的JS解决,希望能有CSS解决方案<br />
JS代码:<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
&lt;!&#8211;<br />
window.onload=function(){<br />
var addheight=document.getElementById(&quot;footer&quot;).scrollHeight;<br />
var addel=document.createElement(&quot;div&quot;);<br />
addel.style.cssText=&quot;height:&quot;+addheight+&quot;;padding-top:20px&quot;;<br />
document.getElementById(&quot;container&quot;).appendChild(addel);<br />
};<br />
// &#8211;&gt;<br />
&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2261</link>
		<author>温谦</author>
		<pubDate>Wed, 02 Apr 2008 06:00:44 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2261</guid>
		<description>BlackOut ，

你在浏览器中试验过上面文章里的那个测试页面吗？内容超过浏览器窗口高度，也不会挡住的footer的，你再仔细试验一下？我在IE6/IE7/Firefox/safari测试都没有问题。</description>
		<content:encoded><![CDATA[<p>BlackOut ，</p>
<p>你在浏览器中试验过上面文章里的那个测试页面吗？内容超过浏览器窗口高度，也不会挡住的footer的，你再仔细试验一下？我在IE6/IE7/Firefox/safari测试都没有问题。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: BlackOut</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2260</link>
		<author>BlackOut</author>
		<pubDate>Wed, 02 Apr 2008 05:55:44 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2260</guid>
		<description>如果#content的高度超过一屏(100%),那么下面的内容就会被#footer挡住了,解决办法希望发到我的邮箱,谢谢.</description>
		<content:encoded><![CDATA[<p>如果#content的高度超过一屏(100%),那么下面的内容就会被#footer挡住了,解决办法希望发到我的邮箱,谢谢.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2205</link>
		<author>温谦</author>
		<pubDate>Sun, 30 Mar 2008 08:52:16 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2205</guid>
		<description>请参见CSS代码第24行，这是font属性的简写形式。如果不熟悉，可以查一下CSS的相关内容，一般的资料上都有。</description>
		<content:encoded><![CDATA[<p>请参见CSS代码第24行，这是font属性的简写形式。如果不熟悉，可以查一下CSS的相关内容，一般的资料上都有。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: aiis</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2204</link>
		<author>aiis</author>
		<pubDate>Sun, 30 Mar 2008 08:48:31 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2204</guid>
		<description>我是问计算#footer的高度 那一行代码为什么是20px?</description>
		<content:encoded><![CDATA[<p>我是问计算#footer的高度 那一行代码为什么是20px?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: 温谦</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2203</link>
		<author>温谦</author>
		<pubDate>Sun, 30 Mar 2008 08:20:29 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2203</guid>
		<description>aiis，

这是为#footer计算高度，要以#footer中的尺寸计算，请参见CSS代码第24行。</description>
		<content:encoded><![CDATA[<p>aiis，</p>
<p>这是为#footer计算高度，要以#footer中的尺寸计算，请参见CSS代码第24行。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者: aiis</title>
		<link>http://learning.artech.cn/20080328.css-footer-position.html#comment-2202</link>
		<author>aiis</author>
		<pubDate>Sun, 30 Mar 2008 08:13:56 +0000</pubDate>
		<guid>http://learning.artech.cn/20080328.css-footer-position.html#comment-2202</guid>
		<description>font: 12px/1.5 arial; 怎么得出font-size是20个像素呢？就是/*20px(font-size)x2(line-height) + 10px(padding)x2=60px */中的20px(font-size)?</description>
		<content:encoded><![CDATA[<p>font: 12px/1.5 arial; 怎么得出font-size是20个像素呢？就是/*20px(font-size)x2(line-height) + 10px(padding)x2=60px */中的20px(font-size)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

