<style>
body{
font: 18px/32px 'Microsoft yahei';
}
h2{
/* 文字不加粗 */
font-weight: 400;
/* 让h1里面的文字水平居中对齐 */
text-align: center;
}
.gray{
color: #888888;
font-size: 16px;
text-align: center;
}
a {
text-decoration: none;
}
.search{
color: #666;
/* 如果#666666可以简写为#666 */
width: 170px;
}
.btn{
font-weight: 700;
}
p{
/* 首行缩进两个字符 */
text-indent: 2em;
}
.pic{
/* 想要图片居中对齐,则是让它的父亲 p标签添加 水平居中的代码 */
text-align: center;
}
.footer{
color: #888888;
font-size: 16px;
}
</style>
</head>
<body>
<h2>00后清华才女杨倩绝地逆转,夺得奥运首冠</h2>
<div class="
使用HTML制作的第一个页面
最新推荐文章于 2021-09-22 23:56:27 发布