ich ein Problem mit border-radius
in Webkit-Browsern hatte und die Lösung unter folgender URL zu finden: How to make CSS3 rounded corners hide overflow in Chrome/Operaposition: absolute innerhalb border-radius und overflow: hidden
aber iam ein anderes Element mit position: absolute;
in diesem jetzt mit ich brauche auch die Beschriftung mit abgerundeten Rand zu machen, aber nicht wissen, wie
Anmerkung: i nicht einem anderen border-radius
in Beschriftung verwenden, da diese eine Animation haben
mit dem Code zu sehen:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Problem</title>
<style type="text/css">
img {
border: 0;
}
a {
text-decoration: none;
}
.wrap-events {
float: left;
position: relative;
width: 500px;
height: 250px;
}
.events {
overflow: hidden;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
}
.caption {
position: absolute;
width: 100%;
bottom: 0;
color: #FFFFFF;
background-color: #151515;
font: 12px "Arial", Helvetica, sans-serif;
opacity: 0.6;
border-radius: 0 0 50px 50px; /* add border-radius to caption */
}
.caption p {
padding: 10px;
}
</style>
</head>
<body>
<div class="wrap-events">
<div class="events">
<a href="#">
<img src="http://www.cg-auto.com.br/forum/imagens/imagens_news/26c4dc4359edcfd4c6871ee1fa958539.jpg" alt="image">
</a>
<div class="caption">
<p>This is a caption</p>
</div>
</div>
</div>
<button id="slide">Slide It!</button>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$('#slide').click(function(){
$('.caption').hide().slideDown(2000);
});
</script>
</body>
</html>
prost
Darf ich Ihnen eine [JS Fiddle Demo] (http://jsfiddle.net/davidThomas/B6FPE/) anbieten? Es erleichtert uns, Ihnen zu helfen, wenn wir sehen können, was Sie vorhaben. –
Scheint mir Ok [this] (http://jsfiddle.net/Starx/SBBLT/) – Starx
danke @DavidThomas ... @Starx das Problem mit der Beschriftung mit 'border-Radius' kann in der Hälfte der Animation gesehen werden , die Beschriftung ist sehr außerhalb des Bildes Prost – JaNightmare