font-faimly字体大全

清 font-size:100px 为例

在这里插入图片描述

  1. font-family:“Arial”,“Microsoft YaHei”,“黑体”,“宋体”,sans-serif;
    在这里插入图片描述

  2. font-family:Tahoma,Helvetica,Arial,‘宋体’,sans-serif;在这里插入图片描述

  3. font-family: ‘Microsoft YaHei’,arial,tahoma,\5b8b\4f53,sans-serif;
    在这里插入图片描述

  4. font-family:Tahoma,Helvetica,Arial,"\5b8b\4f53",sans-serif;
    在这里插入图片描述

  5. font-family: Helvetica, ‘Hiragino Sans GB’, ‘Microsoft Yahei’, ‘微软雅黑’, Arial, sans-serif;
    在这里插入图片描述

  6. font-family: Tahoma,Helvetica,Arial,"\5b8b\4f53",sans-serif;
    在这里插入图片描述

  7. font-family: SimSun;
    在这里插入图片描述

  8. font-family: KaiTi;
    在这里插入图片描述

  9. font-family: LiSu;
    在这里插入图片描述

  10. font-family:YouYuan;
    在这里插入图片描述

  11. font-family: DFKai-SB;
    在这里插入图片描述

  12. font-family: PMingLiU;
    在这里插入图片描述

  • 3
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是C++实现代码: ```cpp #include <iostream> #include <string> #include <vector> using namespace std; class Person { protected: string lastName; string firstName; string gender; int age; string occupation; public: Person(string lName, string fName, string gen, int a, string occ) : lastName(lName), firstName(fName), gender(gen), age(a), occupation(occ) {} void display() { cout << "Last Name: " << lastName << endl; cout << "First Name: " << firstName << endl; cout << "Gender: " << gender << endl; cout << "Age: " << age << endl; cout << "Occupation: " << occupation << endl; } }; class Family : public Person { private: Person husband; Person wife; vector<Person> children; public: Family(string hLastName, string hFirstName, string hGen, int hAge, string hOcc, string wLastName, string wFirstName, string wGen, int wAge, string wOcc, vector<Person> c) : Person(hLastName, hFirstName, hGen, hAge, hOcc), husband(hLastName, hFirstName, hGen, hAge, hOcc), wife(wLastName, wFirstName, wGen, wAge, wOcc), children(c) {} void displayHusband() { husband.display(); } void displayWife() { wife.display(); } void displayChildren() { for (Person child : children) { child.display(); } } }; int main() { Person father("Smith", "John", "Male", 40, "Engineer"); Person mother("Johnson", "Mary", "Female", 35, "Teacher"); vector<Person> children = {Person("Smith", "Tom", "Male", 10, ""), Person("Smith", "Kate", "Female", 8, "")}; Family family("Smith", "John", "Male", 40, "Engineer", "Johnson", "Mary", "Female", 35, "Teacher", children); cout << "Husband: " << endl; family.displayHusband(); cout << "Wife: " << endl; family.displayWife(); cout << "Children: " << endl; family.displayChildren(); return 0; } ``` 运行结果: ``` Husband: Last Name: Smith First Name: John Gender: Male Age: 40 Occupation: Engineer Wife: Last Name: Johnson First Name: Mary Gender: Female Age: 35 Occupation: Teacher Children: Last Name: Smith First Name: Tom Gender: Male Age: 10 Occupation: Last Name: Smith First Name: Kate Gender: Female Age: 8 Occupation: ```

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值