
Warning: Declaration of c2c_ConfigureSMTP::options_page_description() should be compatible with C2C_Plugin_023::options_page_description($localized_heading_text = '') in /home/mslandimfs1l6a8ndd/wwwroot/wp-content/plugins/configure-smtp/configure-smtp.php on line 47
<?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>迷失的世界 &#187; css</title>
	<atom:link href="http://www.msland.cn/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.msland.cn</link>
	<description>迷失的世界-终要找到归属....</description>
	<lastBuildDate>Sat, 24 Jan 2015 10:46:32 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>IE6下PNG透明的简便解决办法</title>
		<link>http://www.msland.cn/ie6touming.html</link>
		<comments>http://www.msland.cn/ie6touming.html#comments</comments>
		<pubDate>Sat, 07 Jul 2012 04:46:27 +0000</pubDate>
		<dc:creator><![CDATA[Zero]]></dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false">http://www.msland.cn/?p=705</guid>
		<description><![CDATA[IE6下PNG透明在网页设计里总是个恼人的问题，artery以前讲过个简便的解决IE6下PNG透明的办法，可我 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>IE6下PNG透明在网页设计里总是个恼人的问题，artery以前讲过个简便的解决IE6下PNG透明的办法，可我老忘，所以在这里记录一下，以便使用时方便随时查阅，也给朋友们提供个参考，</p>
<p>方法如下：</p>
<p><a href="http://www.msland.cn/wp-content/uploads/2012/07/ie6.png" class="highslide-image" onclick="return hs.expand(this);"><img src="http://www.msland.cn/wp-content/uploads/2012/07/ie6.png" alt="" title="ie6" width="350" height="180" class="aligncenter size-full wp-image-709" /></a></p>
<p>在页面网页文件中</head>的前面加入： </p>
<pre class="brush: php; title: ; notranslate">&lt;!--[if IE 6]&gt;&lt;link href=&quot;xxx.com/ie6.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;&lt;![endif]--&gt;</pre>
<p>建立一个IE6.CSS文件放到对应的位置，IE6.CSS文件内容为：</p>
<pre class="brush: jscript; title: ; notranslate">img, div, td {behavior: url('/iepngfix.htc')}</pre>
<p>修改iepngfix.htc文件中blank.gif（大小为一个像素的透明图片）的URL并上传到对应位置，如果找不到这个blank.gif文件会在PNG图片上面多出一个叉叉</p>
<p>iepngfix.htc文件下载：<a href='http://www.msland.cn/wp-content/uploads/2012/07/20090825225943.rar'>20090825225943</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.msland.cn/ie6touming.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>WordPress 实现图片自动缩放</title>
		<link>http://www.msland.cn/css-kongzhi.html</link>
		<comments>http://www.msland.cn/css-kongzhi.html#comments</comments>
		<pubDate>Tue, 26 Jun 2012 14:47:15 +0000</pubDate>
		<dc:creator><![CDATA[Zero]]></dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[自动缩放]]></category>

		<guid isPermaLink="false">http://www.msland.cn/?p=616</guid>
		<description><![CDATA[偶经常发表日志需要配图，感觉加点图片怎么都看着舒服些，有时候加的图片比较大， 导致图片显示不全，所以需要这个自 [&#8230;]]]></description>
				<content:encoded><![CDATA[<blockquote><p>偶经常发表日志需要配图，感觉加点图片怎么都看着舒服些，有时候加的图片比较大，<br />
导致图片显示不全，所以需要这个自动缩放效果！<br />
wordpress官方皮肤自带有大图片自动缩放，但是效果不是很好，下面列举3种比较完美的缩放代码供大家参考。</p></blockquote>
<p><strong>方法一、采用官方默认CSS</strong></p>
<p>使用方法：将以下代码直接加入style.css即可<br />
相关说明：只能控制宽度的缩放，高度无法控制，且不支持IE6</p>
<pre class="brush: css; auto-links: false; class-name: myclass; collapse: false; first-line: 1; gutter: true; highlight: [1,2,3,6,9]; html-script: false; light: false; pad-line-numbers: false; smart-tabs: true; tab-size: 4; title: example-filename.php; toolbar: true; notranslate">p img {
	padding: 0;
	max-width: 100%;
	}</pre>
<p>官方的这个方法，不能控制高度，而且不支持IE6，下面偶寻找了一个比较完美的解决方案，我现在用的就是这种CSS控制方法：</p>
<pre class="brush: css; auto-links: false; class-name: myclass; collapse: false; first-line: 1; gutter: true; highlight: [1,2,3,6,9]; html-script: false; light: false; pad-line-numbers: false; smart-tabs: true; tab-size: 4; title: example-filename.php; toolbar: true; notranslate">p img {
max-width:600px;
width: expression(this.width &gt; 600 ? “600px” : true);
height:auto;
}</pre>
<p><strong>方法二、使用jQuery实现</strong></p>
<p>使用方法：1、加载jQuery库 2、将以下代码加入header.php或单独保存为JS并加载</p>
<p>相关说明：可以对图片进行自动缩放，方法较为完美。</p>
<pre class="brush: php; title: ; notranslate">$(document).ready(function(){
    $('div').autoResize({height:750});
});  
jQuery.fn.autoResize = function(options)
{
    var opts = {
        'width' : 700,
        'height': 750
    }
    var opt = $.extend(true, {},opts,options || {});
    width = opt.width;
    height = opt.height;
    $('img',this).each(function(){
        var image = new Image();
        image.src = $(this).attr('src');&amp;#160;&amp;#160; if(image.width &gt; 0 &amp;&amp; image.height &gt; 0 ){
            var image_rate = 1;
            if( (width / image.width) &lt; (height / image.height)){
                image_rate = width / image.width ;
            }else{
                image_rate = height / image.height ;
            }
            if ( image_rate &lt;= 1){
                $(this).width(image.width * image_rate);
                $(this).height(image.height * image_rate);
            }
        }
    });
}</pre>
<p><strong>方法三、CSS控制</strong></p>
<p>使用方法：将以下代码直接加入style.css即可</p>
<p>相关说明：可以缩放高度以及宽度，但是比较死板，支持IE6</p>
<pre class="brush: css; auto-links: false; class-name: myclass; collapse: false; first-line: 1; gutter: true; highlight: [1,2,3,6,9]; html-script: false; light: false; pad-line-numbers: false; smart-tabs: true; tab-size: 4; title: example-filename.php; toolbar: true; notranslate">p img {
    max-width:100px; /* FF IE7 */
    max-height:80px; /* FF IE7 */
    width:expression(this.width &gt; 100 &amp;&amp; this.width &gt; this.height ? 100 : true);
    height:expression(this.height &gt; 80 &amp;&amp; this.height &gt; this.width ? 80 : true);
    overflow:hidden;
}</pre>
<p>这个可以控制缩放固定大小~~也挺好的！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.msland.cn/css-kongzhi.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>利用CSS实现wordpress侧边栏分类目录分两列显示</title>
		<link>http://www.msland.cn/css-wordpress-fenlei.html</link>
		<comments>http://www.msland.cn/css-wordpress-fenlei.html#comments</comments>
		<pubDate>Tue, 05 Jun 2012 15:52:00 +0000</pubDate>
		<dc:creator><![CDATA[Zero]]></dc:creator>
				<category><![CDATA[网站相关]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[分类目录]]></category>

		<guid isPermaLink="false">http://www.msland.cn/?p=588</guid>
		<description><![CDATA[细心的童鞋或许已经发现了我的博客侧边栏的那个分类目录已经由原来的一栏显示变成分两栏显示了，这个主要是根据你自己 [&#8230;]]]></description>
				<content:encoded><![CDATA[<blockquote><p>细心的童鞋或许已经发现了我的博客侧边栏的那个分类目录已经由原来的一栏显示变成分两栏显示了，这个主要是根据你自己博客的需要去修改的，如果你希望实现，可以有很多功能强大的插件去实现分类目录分两栏显示，但是今天偶告诉你的是一个非常简单的实现方法，用CSS实现。利用CSS标签ul和li的宽度去实现，控制ul宽度=li宽度x2。</p></blockquote>
<h2>修改方法</h2>
<p><strong>1、CSS部分</strong></p>
<pre class="brush: css; title: ; notranslate">.sidebar-categories li{
width:130px;
float:left;
}
.sidebar-categories ul{
width:260px;
display:block;
overflow:auto;
}</pre>
<p>注：宽度根据你个人的需要去进行调整。总之控制好ul宽度=li宽度的两倍</p>
<p><strong>2、php 文件修改部分</strong></p>
<pre class="brush: php; title: ; notranslate">&lt;div class=&quot;widget&quot;&gt;&lt;h3&gt;分类目录&lt;/h3&gt;
&lt;div class=&quot;sidebar-categories&quot;&gt;
&lt;div class=&quot;sidebar-categories li&quot;&gt;
&lt;ul&gt;
&lt;?php wp_list_categories('orderby=name&amp;show_count=1&amp;title_li='); ?&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre>
<p>这部分就在你侧边栏需要显示分类的地方贴上，wp_list_categories的属性可以自行调整。IE6下的兼容性也被我解决掉了！</p>
<p>轻轻感叹一下：强大的CSS！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.msland.cn/css-wordpress-fenlei.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>
