bbr*_*oke 17 html css twitter-bootstrap
我正在尝试使用twitter bootstrap创建"从App Store下载"按钮.
我遇到的问题是试图使"App Store"文本大于上面的"从下载中"文本.
这是我正在使用的HTML和CSS.
.fixed-hero .hero-text {
padding-top: 90px;
width: 65%;
color:#fff;
font-family: Century Gothic, sans-serif;
font-size: 2.2em;
line-height: 1.5em;
}
.fixed-hero .hero-button {
padding-top: 60px;
width: 65%;
}
.btn.btn-large.btn-danger{
border-style:solid;
border-width:1px;
border-color:#fff;
background-image: linear-gradient(to bottom, rgb(204, 81, 81), #990000);
text-align: left;
}
<div class="hero-button text-center">
<a href="#" class="btn btn-large btn-danger">
<i class="icon-apple icon-3x pull-left"></i>
<div>
Download from the
App Store
</div>
</a>
</div>
Run Code Online (Sandbox Code Playgroud)
我很感谢反馈和专业知识.
小智 14
包装文本并使用font-size缩小它:较小或您喜欢的任何大小.
<div class="hero-button text-center">
<a href="#" class="btn btn-large btn-danger">
<i class="icon-apple icon-3x pull-left"></i>
<span style="font-size:smaller;">Download from the</span>
App Store
</a>
</div>
Run Code Online (Sandbox Code Playgroud)