CSS-如何在下方添加文字和按钮

时间:2018-10-01 21:25:43

标签: css css3

enter image description here

你好!如何使文字“ RUB”显示在图像中?以及如何在div块的下方创建按钮?

1 个答案:

答案 0 :(得分:-1)

我已经更改了它: enter image description here

<div style="border: 1px solid black;width: 152px;">
    <div style="float: left; width:120px; padding-top:20px;">
        <span style="font-size: 42px;">6450.</span>
    </div>
    <div style="float:left; width:30px;">
        <div><img src="" alt="RUB"></div>
        <div><span style="font-size: 24px;">00</span></div>
    </div>
    <div style="clear:both;"></div>
</div>
<div style="width:154px;clear: both;display: block; text-align: center;background-color: green;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;">
        Buy
    </div>