将文本正确对齐到圆圈内 [英] Align the text properly inside circle

查看:64
本文介绍了将文本正确对齐到圆圈内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请访问此 link1 搜索10%,使用Ctrl + F

visit this link1 search for 10% using Ctrl + F

请访问此 link2 < a>使用Ctrl + F搜索50%

visit this link2 search for 50% using Ctrl + F

在链接1中,10%OFF以cirlce显示,但在第二个字符串中不能正常显示。有任何想法可以让它工作吗?

In link 1, "10% OFF" is displaying in cirlce, but in the second one its not displaying properly. Any ideas to get it to work?

代码:

.quick .you_savee{

border : 1px solid #ccc;
border:radius : 37px;
color : green;

left:151px;
position:relative ! important;
top:-100px;

}


推荐答案

:块; on元素。

 .Quick .you_save_price::after {
    content: "OFF";
    display: block;
  }

http://i.imgur.com/1Aj3EjW.png

这篇关于将文本正确对齐到圆圈内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆