<?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://hugege.com/category/css/feed/" rel="self" type="application/rss+xml" /><link>http://hugege.com</link> <description>网上吹水记录  hugege.com</description> <lastBuildDate>Sun, 06 Nov 2011 05:10:30 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>CSS3圆角属性在Firefox,Chrome,Safari的实现</title><link>http://hugege.com/2008/11/09/css3-firefox-chrome-safari/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css3-firefox-chrome-safari</link> <comments>http://hugege.com/2008/11/09/css3-firefox-chrome-safari/#comments</comments> <pubDate>Sat, 08 Nov 2008 18:51:35 +0000</pubDate> <dc:creator>胡戈戈</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Firefox]]></category><guid isPermaLink="false">http://hugege.com/?p=178</guid> <description><![CDATA[今天在aw那里看到他的博客用了Firefox专有的圆角属性，另外WordPress的后台也使用了，于是我自己也就试一下来用了。目前IE还未支持圆角属性，IE8我还不清楚支不支持，或许我们以后只要使用border-radius这个CSS3属性就能轻松地在现代浏览器实现这个困扰很多小盆友的问题了，希望这一天的到来不会太遥远。目前我们已经可以在Firefox,Chrome,Safari实现这个功能了，但他们也还是使用私有属性来实现，用法上略有区别。 先说一下Firefox的圆角属性： -moz-border-radius: {1,4} &#124; inherit 如果你想设置四个角都是一样圆角的话，可以像这样子直接设置-moz-border-radius:5px; 也可以单独设置元素的上左、上右、下右、下左四个角的值，分别用-moz-border-radius-topleft、-moz-border-radius-topright、-moz-border-radius-bottomright、-moz-border-radius-bottomleft来设置。 也可以用合并起来一起设置，如我目前的主题暂时设置的-moz-border-radius:5px 0 5px 0; 对chrome、Safari这两个webkit内核的浏览器来说，是用-webkit-border-radius来实现的。 -webkit-border-radius：{1,2} &#124; inherit; 如果你想设置四个角都是一样圆角的话，依然可以像这样子直接设置-moz-border-radius:3px; 如果是单独设置四个角的话，需要采取这种方式 -webkit-border-top-left-radius:5px 10px; -webkit-border-top-right-radius:5px 10px; -webkit-border-bottom-right-radius:5px 10px; -webkit-border-bottom-left-radius:5px 10px; 如果是要合并的话，只支持-webkit-border-radius:3px;或者是这样子-webkit-border-radius:3px 4px;使用-webkit-border-radius:5px 0 5px 0;将不会有任何效果。 著名皮肤制作人utom总结了圆角属性不同浏览器下的运用 -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; 更多详细的请大家自己查看以下链接： mozilla 和webkit的 CSS圆角 https://developer.mozilla.org/en/CSS/-moz-border-radius apple_ref/doc/uid/TP30001266&#8211;webkit-border-bottom-left-radius Hugege.com by 胡戈戈 Copyright © 2008 爱祖国,爱人民,唉派对。 更多精彩欢迎您订阅http://feed.hugege.com GegeHost稳定便宜的美国主机,论坛推荐:美国主机论坛]]></description> <content:encoded><![CDATA[<p>今天在aw那里看到他的博客用了Firefox专有的圆角属性，另外WordPress的后台也使用了，于是我自己也就试一下来用了。目前IE还未支持圆角属性，IE8我还不清楚支不支持，或许我们以后只要使用border-radius这个CSS3属性就能轻松地在现代浏览器实现这个困扰很多小盆友的问题了，希望这一天的到来不会太遥远。目前我们已经可以在Firefox,Chrome,Safari实现这个功能了，但他们也还是使用私有属性来实现，用法上略有区别。</p><p><strong>先说一下Firefox的圆角属性：</strong><br /> -moz-border-radius: {1,4} | inherit<br /> 如果你想设置四个角都是一样圆角的话，可以像这样子直接设置-moz-border-radius:5px;<br /> 也可以单独设置元素的上左、上右、下右、下左四个角的值，分别用-moz-border-radius-topleft、-moz-border-radius-topright、-moz-border-radius-bottomright、-moz-border-radius-bottomleft来设置。<br /> 也可以用合并起来一起设置，如我目前的主题暂时设置的-moz-border-radius:5px 0 5px 0;</p><p><strong>对chrome、Safari这两个webkit内核的浏览器来说，是用-webkit-border-radius来实现的。</strong><br /> -webkit-border-radius：{1,2} | inherit;<br /> 如果你想设置四个角都是一样圆角的话，依然可以像这样子直接设置-moz-border-radius:3px;<br /> 如果是单独设置四个角的话，需要采取这种方式</p><blockquote><p>-webkit-border-top-left-radius:5px 10px;<br /> -webkit-border-top-right-radius:5px 10px;<br /> -webkit-border-bottom-right-radius:5px 10px;<br /> -webkit-border-bottom-left-radius:5px 10px;</p></blockquote><p>如果是要合并的话，只支持-webkit-border-radius:3px;或者是这样子-webkit-border-radius:3px 4px;<strong>使用-webkit-border-radius:5px 0 5px 0;将不会有任何效果。</strong></p><p><strong>著名皮肤制作人<a href="http://utombox.com/new-lastfm/">utom</a>总结了圆角属性不同浏览器下的运用</strong></p><blockquote><p>-moz-border-radius: 5px;<br /> -khtml-border-radius: 5px;<br /> -webkit-border-radius: 5px;<br /> border-radius: 5px;</p></blockquote><p>更多详细的请大家自己查看以下链接：<br /> <a href="http://weibin.org/html/moz-border-radius-webkit-border-radius_28.html">mozilla 和webkit的 CSS圆角</a><br /> <a href="https://developer.mozilla.org/en/CSS/-moz-border-radius"> https://developer.mozilla.org/en/CSS/-moz-border-radius</a><br /> <a href="http://developer.apple.com/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266--webkit-border-bottom-left-radius"> apple_ref/doc/uid/TP30001266&#8211;webkit-border-bottom-left-radius</a></p><p><a href="http://hugege.com/" target="_blank">Hugege.com</a> by 胡戈戈 Copyright ©  2008 爱祖国,爱人民,唉派对。<br /> 更多精彩欢迎您订阅<a href="http://feed.hugege.com" target="_blank">http://feed.hugege.com</a><br/> <a href="http://www.gegehost.com/" target="_blank">GegeHost稳定便宜的美国主机</a>,论坛推荐:<a href="http://ushost.me/" target="_blank">美国主机论坛</a></p> ]]></content:encoded> <wfw:commentRss>http://hugege.com/2008/11/09/css3-firefox-chrome-safari/feed/</wfw:commentRss> <slash:comments>29</slash:comments> </item> </channel> </rss>
