搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

css3 border radius

  • 2 个回答
  • 19 人有此问题
  • 17 次查看
  • 最后回复者为 AnonymousUser

more options

Issue

I have another kind of problem with Firefox

Description

I am using css3 to create rounded edges on an img in my html. Safari renders border radius ok but Firefox needs image in CSS (background image)

here is the css

/* only works in webkit */

  1. sample img{

-moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; width:220px; height:220px; }

/* works in webkit and gecko */

  1. colouredbox {

background-color: #fae93a; -moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; width:220px; height:220px; }

/* works in webkit and gecko */

  1. imageviacss {

-moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; background-image: url(220sample.jpg); width:220px; height:220px; }

(Edited by Moderator: placed code in a CODE block - c)

This happened

Every time Firefox opened

i was trying it out :D

Firefox version

3.6.4

Operating system

Intel Mac OS X 10.6

User Agent

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4

Plugins installed

  • -Displays PDF documents in the browser.
  • Gecko default plugin
  • Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information.
  • doubleTwist Web Plugin
  • iPhoto6
  • Unity Web Player lets you experience dazzling interactive 3D right in your browser. For more information, visit Unity .
  • Allows webpages to support pressure-sensitive drawing on Wacom pen tablets.
  • 3.0.50106.0
  • The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.
  • Shockwave Flash 10.0 r45
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
== Issue == I have another kind of problem with Firefox == Description == I am using css3 to create rounded edges on an img in my html. Safari renders border radius ok but Firefox needs image in CSS (background image) here is the css <code>/* only works in webkit */ #sample img{ -moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; width:220px; height:220px; } /* works in webkit and gecko */ #colouredbox { background-color: #fae93a; -moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; width:220px; height:220px; } /* works in webkit and gecko */ #imageviacss { -moz-border-radius:20px; -webkit-border-radius: 20px; border-radius: 20px; background-image: url(220sample.jpg); width:220px; height:220px; } </code> <br/> <br/>''(Edited by Moderator: placed code in a CODE block - c)''<br/> <br/> == This happened == Every time Firefox opened == i was trying it out :D == == Firefox version == 3.6.4 == Operating system == Intel Mac OS X 10.6 == User Agent == Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.4) Gecko/20100513 Firefox/3.6.4 == Plugins installed == *-Displays PDF documents in the browser. *Gecko default plugin *Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information. *doubleTwist Web Plugin *iPhoto6 *Unity Web Player lets you experience dazzling interactive 3D right in your browser. For more information, visit Unity . *Allows webpages to support pressure-sensitive drawing on Wacom pen tablets. *3.0.50106.0 *The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime. *Shockwave Flash 10.0 r45 *The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.

所有回复 (2)

more options

those numbers at the front of the code should be hashs #

more options

See: https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions https://developer.mozilla.org/en/CSS/-moz-border-radius --- A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the MozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25