CSS实战 - 奇Y技巧之div展示

效果:
在这里插入图片描述


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>CSS实战 -按钮</title>
 
	<style type="text/css">
		html,body{
  /*box-sizing:border-box;*/
  margin:0;
  height:100%;
  /*background:#000000;*/
}
.acl{
	background-color: #ffffff;
}
.btn-row{

	height: 40px;
    /*padding-bottom: 6px;*/
    background-color: #7fffd4;
    display: flex;
    /*-webkit-box-align: center;*/
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 20px;
    color: #646464;
}
.Button {
    display: inline-block;
    padding: 0 16px;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    background: none;
    border: 1px solid;
    border-radius: 3px;
    color: #06f;
}

</style>
</head>
<body>
  <div style="margin-top: 100px;margin-left: 100px;background: #a09a47;width: 400px;height: 300px;">
    <div class="acl" style="">

    	<!-- 一行 -->
      <div class="btn-row">
      	<span>
      		<button type="button" class="Button  VoteButton--up">
      			<span style="display: inline-flex; align-items: center;">​
      				<svg class="Zi Zi--TriangleUp VoteButton-TriangleUp" fill="currentColor" viewBox="0 0 24 24" width="10" height="10">     <path d="M2 18.242c0-.326.088-.532.237-.896l7.98-13.203C10.572 3.57 11.086 3 12 3c.915 0 1.429.571 1.784 1.143l7.98 13.203c.15.364.236.57.236.896 0 1.386-.875 1.9-1.955 1.9H3.955c-1.08 0-1.955-.517-1.955-1.9z" fill-rule="evenodd"></path>
      				</svg>
      			</span>
      			赞同
      		</button>
      		<button type="button" class="Button VoteButton--up">
      			<span style="display: inline-flex; align-items: center;">​
      				<svg class="Zi Zi--TriangleUp VoteButton-TriangleUp" fill="currentColor" viewBox="0 0 24 24" width="10" height="10">     <path d="M2 18.242c0-.326.088-.532.237-.896l7.98-13.203C10.572 3.57 11.086 3 12 3c.915 0 1.429.571 1.784 1.143l7.98 13.203c.15.364.236.57.236.896 0 1.386-.875 1.9-1.955 1.9H3.955c-1.08 0-1.955-.517-1.955-1.9z" fill-rule="evenodd"></path>
      				</svg>
      			</span>
      			反对
      		</button>
      	</span>
      	<button type="button" class="Button Button--plain" style="margin-left: 5px;">
      		添加评论
      	</button>
      	<span class="" style="margin-left: 16px;color: #8590a6;">10-21</span>
      </div>
      <!-- end -->


    </div>
  </div>
</body>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

我先来一碗

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值