小编Aks*_*y L的帖子

删除Bootstrap 4中的border-radius 列表组项

我是bootstrap的新手,并且已经在我的自定义CSS类中使用bootstrap border-radius属性.

.border-radius-none{
    border-radius: 0;
}
Run Code Online (Sandbox Code Playgroud)

图片:

在此输入图像描述

这适用于所有情况,但在骑行时list-group-item,第一个和最后一个元素不会被过度使用.

  1. 我的主要css链接在bootstrap css下面.(如下面的代码片段所示)
  2. 阅读关于CSS特异性的文章,这对我没有帮助.

我试过的事情

  1. 添加!important到我的CSS.

有没有其他方法可以删除bootstrap border-radius默认值,而不使用重要的?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
    crossorigin="anonymous">
<link href="./Main.css" rel="stylesheet">


<li class="list-group-item bg-black white-text border-none">
    <div class="row">
        <div class="col-9"> Latest Jobs </div>
        <div class="col-3">
            <a href="#" class="mr-auto">View all</a>
        </div>


    </div>
</li>
Run Code Online (Sandbox Code Playgroud)

html css html5 css3 twitter-bootstrap

4
推荐指数
1
解决办法
3851
查看次数

Dialogflow v2 Nodejs Client Library UpdateIntent when adding Training Phrases

I am trying to use the updateIntent function that is part of the Dialogflow v2 Client library for Node.js . The reason I am trying to use it, is to be able to add training phrases to an intent.

I cannot seem to get passed this one. Here is the code I am using for it!:

My GetIntent Function:

async function getIntent(intentId) {
  try {
    let responses = await intentsClient.getIntent({name: intentId, intentView: 'INTENT_VIEW_FULL'})
    const response = responses[0]
          // console.log(response)

    return …
Run Code Online (Sandbox Code Playgroud)

google-api node.js dialogflow-es

2
推荐指数
1
解决办法
1439
查看次数

ng 类的字体很棒的行为

所以我的代码是 Angular 版本 5。

我有一个带有图标的按钮。我正在尝试使图标动态化。所以我想在发送图标fa fa-paper-plane和加载图标之间切换fa fa-spinner fa-spin。当我发送消息时,我应该显示旋转器,当我收到消息时,我应该显示纸飞机图标。

案例1)我fa一起给了fa-spinner,但fa-paper-plane没有用。

<div class="send">
  <button type="submit" class="message-submit" id="btn-submit" (click)="onSubmit()">
    <i [ngClass]="{ 'fa fa-spinner fa-spin': true, 'fa fa-paper-plane': false }" aria-hidden="true" title="send"></i>
  </button>
</div>
Run Code Online (Sandbox Code Playgroud)

这是下面的输出,我得到一个方形图标而不是旋转图标。

出现一个方框

案例 2) 在这方面,我也给出了fafa-spinner fa-spinfa-paper-plane

<div class="send">
  <button type="submit" class="message-submit" id="btn-submit" (click)="onSubmit()">
    <i [ngClass]="{ 'fa fa-spinner fa-spin': false, 'fa fa-paper-plane': true }" aria-hidden="true" title="send"></i>
  </button>
</div> 
Run Code Online (Sandbox Code Playgroud)

所以现在发生了这种情况。

FA纸飞机作品

现在你可以看到,在这两种情况之间,我刚刚交换了 true false 值。所以我得出的结论是,我的旋转器不工作。但这件事发生了,

情况 3 )我再次给出了fa和 …

html font-awesome ng-class angular

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

Dialogflow中$ Knowledge.Answer [2]或$ Knowledge.Answer [3]的用法

在Dialogflow中使用知识库时,$ Knowledge.Answer [1]返回响应,而$ Knowledge.Answer [2]或$ Knowledge.Answer [3]不起作用。任何的想法?

dialogflow-es

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