English 中文(简体)
环斑马nt周围的环绕边界
原标题:rounded border around img doesnt show

“entergraph

由于乌可以看到边界从角落(红外)消失。 如果一度使其4+x厚度,则需要1px薄。 为什么这是一个问题? 对这种财产采取类似设计的做法?

the html

<div class="win" >  
<img class="rounded" src= red.jpg  />
</div>

www.un.org/Depts/DGACM/index_french.htm

.win{width:188px;float:left;margin:0 30px 25px 0;}
.win .rounded {
overflow: hidden;
behavior: url(PIE.htc);
border:1px solid #000;  
-moz-border-radius: 7px; /* Firefox */
-webkit-border-radius: 7px; /* Safari and Chrome */
border-radius: 7px; /* Opera 10.5+, future browsers, and now also Internet Explorer 6+ using IE-CSS3 */
} 

<><>> EDIT/

最后,我找到了一种能够准确满足需要的解决方案。 (一) 分享联系可能因为其他人有同样的问题:

http://web Designer Wall.com/tutorials/css3-rounded-image-with-jquery” rel=“nofollow noretinger” http://web Designer Wall.com/tutorials/cs3-rounded-image-with-jquery

问题回答

你们应当看<代码>后背井/条码>。 Try background-clip: pavention- Box。 您还应添加<条码>-webkit-background-clip和-moz-background-clip,以支持老浏览器。

There is an issue using border-radius with images in most/all browsers. There are a number of online articles about this but I ve not paid attention to them. You should Google for those.

If you want good rounded borders that will work with a large number of browsers, you could use image as a background for a div with needed css-properties.
Example (only border, nothing else):
html

<div class="card" style="background:url(image.jpg) no-repeat center center; width:150px; height:150px;"></div>

<><>

.card {
    border:1px solid #000;  
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签