border-radius
をつける意図なく、元写真通り、四角全て直角で写真を表示したいのですが、何故か写真上部の角が丸まってしまいます。
誤りをご指摘頂けますと幸甚です。
html
1<div class= 'card'> 2 <a href="/user/products/1"> 3 <div class="card-block"> 4 <h4 class="card-title", style ="font-size:0.8rem;text-align:left;">mitsuoさん</h4> 5 <h6 class="card-subtitle text-muted">Support card subtitle</h6> 6 </div> 7 <div class= 'wwrapper' > 8 <img class="card-img-top" alt="profile_image" src="/assets/earring/01-66c3f0cfc0a7eb944c917151da4b13d3a7d0943255de044ead0bde9eabc5f5ac.jpg" /> 9 <div class="card-img-overlay productimg"> 10 <p class="card-title productbrand">PRADAイヤリング</p> 11 </div> 12 </div> 13 <div class="card-block"> 14 <h6 class="card-text">長らく使用して...</h6> 15 <h6 class="p-price ">2,000円</h6> 16 <h6 class="top-like"><i class='fa fa-heart'> 2</i></h6> 17 <h6 class="top-comment"><i class="fa fa-comment-o"></i></h6> 18 </div><!--card-block--> 19 </a> 20</div><!--card-->
css
1.card { 2 max-width: 15rem; 3 } 4.card-img-top { 5 width: 100%; 6 border-radius: 0; 7 } 8.wwrapper{ 9 position: relative; 10} 11.card-img-overlay.productimg{ 12 padding: 0rem; 13} 14.card-title.productbrand{ 15 background-color:rgba(0, 0, 0, 0.5); 16 bottom: 0rem; 17 color: $white; 18 position: absolute; 19 width: 100%; 20 margin-bottom: 0rem; 21} 22.card-block{ 23 position: relative; 24 height: 5rem; 25}
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/17 01:05