css
1<template lang="html"> 2 <div class="buttons"> 3 <a 4 class="btn twitter" 5 href="https://twitter.com/share?url=" 6 target="_blank" 7 rel="noopener noreferrer" 8 aria-label="Share on twitter" 9 > 10 <span class="link fa fa-twitter" /> 11 </a> 12 <a 13 class="btn facebook" 14 href="http://www.facebook.com/sharer.php?u=" 15 rel="noopener noreferrer" 16 aria-label="Share on Facebook" 17 > 18 <span class="link fa fa-facebook" /> 19 </a> 20 </div> 21</template> 22 23<script> 24export default { 25 name:'Myfooter' 26} 27</script> 28 29<style lang="css" > 30.buttons{ 31 text-align:center; 32} 33.facebook { 34 color: #3b5998; 35 font-size:50px; 36} 37.twitter{ 38 color: #55acee; 39 font-size:50px; 40} 41.link{ 42 display: inline-block; 43 width: 80px; 44 height: 80px; 45 border-radius: 50%; 46 background: skyblue; 47 text-align:center; 48 line-height: 80px; 49} 50</style> 51
border-radiusで円を作ってその中心にアイコンを配置したいのですがうまくいきません。
いいやり方があれば教えてください。よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。