简体   繁体   English

如何减小图像背景的大小或将其删除

[英]How to reduce the size of the background of an image or remove it

How can I fix this ?我怎样才能解决这个问题 ?

check the screenshot检查屏幕截图

I want only the arrow or that transparent.我只想要箭头或透明。 Is that possible?那可能吗?

I searched for the image and I can't find it我搜索了图片,但找不到

 .set-button-left { color: #7396ff; position: fixed; top: 40%; left: 10px; font-size: 77px; z-index: +999; }

 <div class="row mobile-next-prev"> <div class="col-sm-12"> <!-- pre start --> <a href="http://127.0.0.1/fix/details/1201" class="set-button-left">‹</a> <!-- pre end --> <!-- next start --> <a href="http://127.0.0.1/fix/details/1210" class="set-button-right">›</a> <!-- next end --> </div> </div>

To Implement FontAwesome, you will need to reference it on your page.要实现 FontAwesome,您需要在页面上引用它。 This can be wherever you have refrenced other stylesheets (ie the header).这可以是您引用其他样式表(即标题)的任何地方。 In this example, I have used an online host (CDNJS) to provide the url.在这个例子中,我使用了一个在线主机 (CDNJS) 来提供 url。 You can just copy and paste it.您只需复制并粘贴即可。 Otherwise, you can go to fontawesome's website and sign up and read through the documentation to find out the other numerous ways to use it.否则,您可以访问 fontawesome 的网站并注册并阅读文档以了解其他多种使用方法。

After that, you just stick the font awesome icons in there, as shown.之后,您只需将字体真棒图标粘贴在那里,如图所示。 You can style them through inline styling (shown in the second example) or you can use CSS.您可以通过内联样式(在第二个示例中显示)来设置它们的样式,也可以使用 CSS。

This can go anywhere in your html.这可以放在你的 html 中的任何地方。 However, depending on neighbor elements, it might not work as expected, hence why I was asking for more HTML.但是,根据相邻元素,它可能无法按预期工作,因此我要求更多 HTML。 But this should, at minimum, get you started.但这至少应该让你开始。

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css" />

<i class="fas fa-chevron-left"></i>
<i class="fas fa-chevron-right"></i>

<br>
<br>

<i class="fas fa-chevron-left" style="color: blue; font-size: 30px"></i>
<i class="fas fa-chevron-right"style="color: blue; font-size: 30px"></i>

CodePen: https://codepen.io/humanhickory/pen/Powqydj代码笔: https ://codepen.io/humanhickory/pen/Powqydj

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM