关于浏览器的font-size:62.5%;

各大主流浏览器的fong-size:1rem;=16px;这是默认的浏览器;
但是你想想,如果用它rem来与px换算是不是很麻烦,如:0.75rem=12px;
如果把它转换为1:10;是不是好算一点,这个时候就需要加一行样式;
html,body{font-size: 62.5% !important;}
这样你需要12px=1.2rem;  14px=1.4rem;
是不是用起来很方便呢!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,这是一个关于C语言的问题,下面是代码实现: ```c #include <stdio.h> #include <string.h> #define MAX_STU 5 // 学生数量 struct student { char id[10]; // 学号 char name[20]; // 姓名 char sex[10]; // 性别 char birth[20];// 出生日期 float score; // 成绩 }; // 输入学生信息 void input_stu(struct student stu[], int n) { for (int i = 0; i < n; i++) { printf("请输入第%d个学生的信息:\n", i + 1); printf("学号:"); scanf("%s", stu[i].id); printf("姓名:"); scanf("%s", stu[i].name); printf("性别:"); scanf("%s", stu[i].sex); printf("出生日期(格式为yyyy-mm-dd):"); scanf("%s", stu[i].birth); printf("成绩:"); scanf("%f", &stu[i].score); } } // 输出学生信息 void output_stu(struct student stu[], int n) { printf("学号\t姓名\t性别\t出生日期\t成绩\n"); for (int i = 0; i < n; i++) { printf("%s\t%s\t%s\t%s\t%.1f\n", stu[i].id, stu[i].name, stu[i].sex, stu[i].birth, stu[i].score); } } // 求成绩最高学生的序号 int max_score_stu(struct student stu[], int n) { float max_score = stu[0].score; int max_stu_index = 0; for (int i = 1; i < n; i++) { if (stu[i].score > max_score) { max_score = stu[i].score; max_stu_index = i; } } return max_stu_index; } int main() { struct student stu[MAX_STU]; input_stu(stu, MAX_STU); output_stu(stu, MAX_STU); int max_stu_index = max_score_stu(stu, MAX_STU); printf("第%d个同学的成绩最高。\n", max_stu_index + 1); return 0; } ``` 上述代码中,通过结构体数组来保存学生信息,通过 `input_stu` 函数输入学生信息,通过 `output_stu` 函数输出学生信息,通过 `max_score_stu` 函数求成绩最高学生的序号。在 `main` 函数中,调用以上三个函数来实现程序功能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值