小编Sum*_*mar的帖子

如何在元素之前添加字体真棒图标

嗨,我想在元素之前和之后添加字体真棒图标.但我不知道如何写它的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)

html css font-awesome

5
推荐指数
1
解决办法
5058
查看次数

如何设置Bootstrap 4工具提示的样式

我正在尝试样式我的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>

工具提示工作正常,但我无法设置样式。

html css bootstrap-4

0
推荐指数
1
解决办法
3076
查看次数

标签 统计

css ×2

html ×2

bootstrap-4 ×1

font-awesome ×1