我有一些社交图标.并且它们在悬停时围绕中心点旋转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) 我希望文本输入边框在未选择时为蓝色,并且在选择字段时,边框颜色应更改为橙色。
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)
有人可以帮忙吗。谢谢
这可能是一个愚蠢的问题,但我真的不明白这是什么错误.该程序适用于除条件之外的所有条件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)