嗨,我想在元素之前和之后添加字体真棒图标.但我不知道如何写它的CSS以及如何获得字体真棒图标链接将其放在css之后.
我已经创建了这样的结构.
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
</head>
<style>
.thish{position:relative; height:150px; width:150px ; background:red; }
.thish::before{position:absolute; content:'tyjthsrgd';right:40%; color:#000; bottom:0; height:30px; width:60px; background:green; z-index:1; }
</style>
<body>
<div class="thish">
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我正在尝试样式我的bootstrap 4 tool-tip
。我想更改其背景颜色,高度,宽度和边框。我找不到任何根据我设计样式的方法。
这是我的HTML
<i class="fa fa-question-circle "href="#" data-toggle="tool-tip" title="Cover for any accidental loss or damage to the vehicle caused by natural calamities such as floods, storms, earthquakes, etc." aria-hidden="true"> </i>
工具提示工作正常,但我无法设置样式。