如何垂直对齐AMP共享图标栏并使它粘在屏幕右侧?

时间:2019-06-01 00:24:05

标签: html sticky asynchronous-messaging-protocol

我试图制作一个AMP垂直共享图标栏,并且float不允许其在屏幕右侧垂直对齐。取下浮子后,该条将垂直向左对齐。如何使其垂直向右对齐?

  .fa {
 padding: 5px;
 font-size: 30px;
 height: 50px;
 width: 50px;
 line-height: 40px;
 text-align: center;
 position: relative;
 vertical-align: bottom;
 float: right;
 }
 .block{

  display: block;
}
</style>
</head>
<body>
<div>
<amp-social-share type="email" class="fa block"></amp-social- 
share>
<amp-social-share type="facebook" data-param- 
app_id="254325784911610"class ="fa right"></amp-social-share>

<amp-social-share type="twitter" class ="fa block"></amp-social- 
share>
<amp-social-share type="whatsapp" class ="fa block"></amp-social- 
share>

</div>

0 个答案:

没有答案