这就是我尝试过的。
body{
background: lightblue;
padding:0px;
margin:0px;
}
span {
quotes: "“" "”" "‘" "’";
font-family: sans-serif;
}
span::before {
content: open-quote;
font-size: 35px;
vertical-align: -0.6rem;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="main.css"/>
</head>
<body>
<div id="app">
<div class="container">
<div class="row">
<div class="col-sm-6 offset-sm-3 d-flex justify-content-center">
<button class="btn btn-primary mt-2">
<span/> New Quote
</button>
</div>
</div>
</div>
</div>
</body>
</html>
无论我进行什么更改,我都无法删除该底部填充。
另外,我无法根据图像获得确切的外观。图像的字体家族是否不同?
我的预期输出如下所示。
谢谢
经过如此多的尝试,终于做到了。
感谢大家的帮助。
body {
background: lightblue;
padding: 0px;
margin: 0px;
}
span {
quotes: "“" "”" "‘" "’";
font-family: sans-seif;
}
span::before {
content: open-quote;
font-size: 49px;
vertical-align: -1.2rem;
line-height: 0.4;
font-family: sans-serif;
}
button{
padding: 0px;
height: 35px;
padding: 0px 8px 0px 6px;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div id="app">
<div class="container">
<div class="row">
<div class="col-sm-6 offset-sm-3 d-flex justify-content-center">
<button class="mt-2">
<span/>New Quote
</button>
</div>
</div>
</div>
</div>
</body>
</html>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句