html 字体形状,二十款漂亮的CSS字体样式

样式一:body {

margin: 0;

padding: 0;

line-height: 1.5em;

font-family: 'Times New Roman', Times, serif;

font-size: 14px;

color: #000000;

background: #f2e7ca url(images/templatemo_body.jpg) top center no-repeat;

}

c338c18a28b97bd8611cdbb24b71b517.png

样式二:body {

background: #2f373a;

font-family: Arial, Helvetica, sans-serif;

font-size: 100%;

line-height: 1em;

color: #4e4e4e;

min-width: 920px;

border-top: 10px solid #0c0e0e;

}

7751a809a82632d0721e45e05c75cdd2.png

样式三:body {

font-family: Arial, Helvetica, sans-serif;

font-size: 1em;

vertical-align: middle;

font-weight: normal;

}

c89a46fe166c46bd5d10765abef6b2b4.png

样式四:body {

margin: 0px;

padding: 0px;

background-color: #e7eaeb;

font-family: '微软雅黑', '黑体', '宋体';

font-size: 12px;

height: 36px;

}

e3a8489bceead12aa507124dab90d222.png

样式五:body {

font: 0.8em Arial, Tahoma, Verdana;

background: #fff url(../images/bg.gif) repeat-x;

color: #777;

}

20a25c7bfca220f5dce182cb516388fe.png

样式六:body {

width: auto;

margin-top: 12px;

float: right;

font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;

font-size: 11px;

color: #999999;

line-height: 25px;

letter-spacing: 1px;

}

690826368f9d48a5335ebc28401d1424.png

样式七:body {

width: auto;

margin-left: 1px;

float: left;

font-family: Arial, Helvetica, sans-serif;

font-size: 13px;

color: #5f5f5f;

line-height: 35px;

text-transform: uppercase;

}

ab3cadccd2b33f0f203ff6b2e69a9e96.png

样式八:body {

background: #e1e5e8;

font-family: 'Georgia', Tahoma, Sans-Serif;

font-size: 12px;

line-height: 18px;

color: #888;

}

7058cb7d71af22fafa20b26253142a75.png

样式九:body {

width: 130px;

height: 20px;

background: url(images/servicesbg.gif) 0 0 repeat-x #68ef00;

color: #317400;

font: 18px/20px Georgia, 'Times New Roman', Times, serif;

margin: 34px 0 0 37px;

}

7f773247211956152a0f2e7c18954b02.png

样式十:body {

display: block;

width: 94px;

height: 20px;

background: url(images/serviceslink1bg.gif) 0 72% no-repeat #6dfd00;

color: #01699f;

font: 13px/20px Georgia, 'Times New Roman', Times, serif;

text-decoration: none;

}

cbe64f292aaacb4e84121f9563835855.png

样式十一:body {

margin: 0;

padding: 0;

line-height: 1.5em;

font-family: Georgia, 'Times New Roman', Times, serif;

font-size: 12px;

color: #33322e;

background: #39443d url(images/templatemo_body_bg.jpg) repeat-x;

}

6ec0124cff9351dbe55955b4c0d1c87d.png

样式十二:body {

margin: 0;

padding: 0;

line-height: 1.5em;

font-family: Tahoma, Geneva, sans-serif;

font-size: 12px;

color: #6f6f6f;

background: #2ac5c0 url(images/templatemo_body_top.jpg) repeat-x;

}

77faabed9c1b7255008cd249953cecc6.png

样式十三:body {

margin: 0;

padding: 0;

line-height: 1.5em;

font-family: Verdana, Geneva, sans-serif;

font-size: 11px;

color: #ffffff;

background: #005b7f;

}

e0d8f74e81f165592dee71f2d27be349.png

样式十四:body {

margin: 0;

padding: 0;

line-height: 1.7em;

font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;

font-size: 12px;

color: #333333;

background: #000000 url(images/templatemo_main_bg.jpg) repeat-y center;

}

24c4c45c876eced03c5ebe0591f37ee9.png

样式十五:body {

margin: 0;

padding: 0;

line-height: 1.7em;

font-family: Verdana, Geneva, sans-serif;

font-size: 12px;

color: #707b84;

background: #3e464d;

}

bbff1b0d663bc1a8566c2bbd94244c04.png

样式十六:body {

margin: 0;

padding: 0;

line-height: 1.7em;

letter-spacing: 1px;

font-family: Georgia, 'Times New Roman', Times, serif;

font-size: 12px;

color: #333;

background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;

}

6f139bb0c7691108511972445831efd8.png

样式十七:body {

background: url(images/bg.gif) repeat #000000;

padding: 0;

font-family: arial, sans-serif;

font-size: 12px;

margin: 0px auto auto auto;

color: #36322b;

}

89c1c463df2af33c06b269467aa21040.png

样式十八:body {

margin: 0px;

padding: 0px;

background: url(images/mainbg.gif) 0 0 repeat-x #f6f4e4;

color: #6b6854;

font: 14px/18px 'Trebuchet MS', Arial, Helvetica, sans-serif;

}

21ef6717982a787712bc331a0c008514.png

样式十九:body {

font-family: Arial;

}

9674282efa2ef5bed26c5cf8672d3671.png

样式二十:body {

line-height: 1.7em;

letter-spacing: 1px;

font-family: Arial;

font-size: 12px;

color: #333;

background: #e1d1d6 url(images/templatemo_body.png) repeat-x top;

}

b79e87ce9325d1ea347dfcebb98b3ced.png

  • 2
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
你可以使用 CSS 来自定义 `input` 标签的 `type` 属性为 `radio` 的样式,实现方块形状字体在方块中间,未选择背景灰色,字体黑色;选中后背景变蓝,字体变白的效果。以下是一种实现方法: ```css /* radio 样式 */ input[type="radio"] { display: none; /* 隐藏默认的 radio */ } /* 自定义 radio 样式 */ .custom-radio { display: inline-block; width: 20px; height: 20px; margin-right: 5px; border: 2px solid gray; /* 未选中时的边框颜色 */ border-radius: 50%; /* 设置为圆形 */ position: relative; } /* 自定义 radio 中的文字 */ .custom-radio::before { content: ""; display: block; width: 100%; height: 100%; background-color: blue; /* 选中时的背景色 */ border-radius: 50%; position: absolute; top: 0; left: 0; transform: scale(0); /* 初始状态缩放为 0 */ transition: all 0.2s ease-in-out; /* 动画过渡 */ } .custom-radio label { display: flex; align-items: center; font-size: 14px; cursor: pointer; user-select: none; } /* 选中状态下的 radio 样式 */ input[type="radio"]:checked + .custom-radio::before { transform: scale(1); /* 缩放为 1,显示选中效果 */ } /* 修改文字颜色 */ input[type="radio"] + .custom-radio label { color: black; /* 未选中时的文字颜色 */ } input[type="radio"]:checked + .custom-radio label { color: white; /* 选中时的文字颜色 */ } /* 修改背景颜色 */ input[type="radio"] + .custom-radio { background-color: #f7f7f7; /* 未选中时的背景色 */ } input[type="radio"]:checked + .custom-radio { background-color: transparent; /* 选中时去掉背景色 */ } ``` 在 HTML 中,你可以这样使用: ```html <label> <input type="radio" name="radio-group" value="option1"> <span class="custom-radio"></span> Option 1 </label> <label> <input type="radio" name="radio-group" value="option2"> <span class="custom-radio"></span> Option 2 </label> ``` 这段代码会生成两个 radio,每个 radio 对应一个 label。label 中的文字与 radio 使用了 flex 布局来实现水平排列。你也可以根据需要调整样式

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值