小编Pra*_*sai的帖子

悬停图像下面的艺术文本

我有一些社交图标.并且它们在悬停时围绕中心点旋转360度.我想在悬停时将文字放在这些图标下方.我不知道该怎么做.

目前我有:

<center>
    <div class="ol-md-3 col-md-offset-5 text-center ">
    <a class="inline_block" href="#" target="_blank"><div class="social-roll linkedin"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/linkedin.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll facebook"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/facebook.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll github"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/github.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll email"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/email.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll skype"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/skype.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll soundcloud"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/soundcloud.png?raw=true" width=48 height=48/></div></a>
  <a class="inline_block" href="#" target="_blank"><div class="social-roll spotify"><img src="https://github.com/prathprabhudesai/prathprabhudesai.github.io/blob/master/Icons/spotify.png?raw=true" width=48 height=48/></div></a>
</div>
</center>

<style>
.inline_block{
   display: inline-block;;
 }

.social-roll { …
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery css3

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

文本输入边框颜色在焦点上没有正确改变

我希望文本输入边框在未选择时为蓝色,并且在选择字段时,边框颜色应更改为橙色。

input[type="text"]{
   border: 1px solid blue;
}

input[type="text"]:focus{
   border: 1px solid orange;
}
Run Code Online (Sandbox Code Playgroud)
<input type="text">
Run Code Online (Sandbox Code Playgroud)

这是未选中时的文本框 这是选中时的文本框。 但是边框颜色不是橙色。

有人可以帮忙吗。谢谢

html javascript css

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

值错误(If..else循环)

这可能是一个愚蠢的问题,但我真的不明白这是什么错误.该程序适用于除条件之外的所有条件A.

#include<stdio.h>
#include<stdlib.h>

int main(void)
{
    char card_name[3];
    puts("Enter the card name: ");
    scanf("%2s",card_name);
    int val = 0;
    //printf("%s",card_name);
    if(card_name[0] == 'K') {
        val = 10;
    }
    else if (card_name[0] == 'Q') {
        val = 10;
    }
    else if (card_name[0] == 'J') {
        val = 10;
    }
    else if (card_name[0] == 'A') {
        val == 11;
    }
    else {
        val = atoi(card_name);
    }

    printf("The card value is %d",val);
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

除A外,所有输出都是正确的.

Enter the card name: A
The …
Run Code Online (Sandbox Code Playgroud)

c if-statement

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

标签 统计

css ×2

html ×2

javascript ×2

c ×1

css3 ×1

if-statement ×1

jquery ×1