个人空间页面html模板,HTML5 家庭主页/个人空间模板

这个博客分享了一款HTML5个人空间页面模板,使用了CSS进行美化,包括头部分区、主内容和底部区域的设计。模板中运用了渐变背景、圆角图片、悬停效果以及响应式布局,适用于创建个性化家庭主页或个人空间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Oxygen:400,300);

.header {

padding: 2em;

background: #f08f90;

border-bottom: 0.5em solid #f47983;

}

.header h1,

.header h6 {

color: #fff;

font-weight: 100;

}

.main {

margin-bottom: 3em;

}

.img-round {

height: 150px;

width: 150px;

border-radius: 100%;

-webkit-transition: all 300ms ease-in;

transition: all 300ms ease-in;

cursor: pointer;

}

.img-round:hover,

.img-round:focus {

border: 3px solid #f08f90;

}

.mason,

.chlo,

.lola {

-webkit-transition: opacity 300ms ease-in;

transition: opacity 300ms ease-in;

opacity: 0;

}

.mason:after,

.lola:after {

content: '';

position: absolute;

bottom: 5px;

right: 0;

left: 1em;

height: 0.15em;

background-image: -webkit-linear-gradient(0deg, #f47983 0%, #fff 100%);

background-image: linear-gradient(90deg, #f47983 0%, #fff 100%);

}

.chlo:after {

content: '';

position: absolute;

bottom: 5px;

right: 1em;

left: 0;

height: 0.15em;

background-image: -webkit-linear-gradient(0deg, #fff 0%, #f47983 100%);

background-image: linear-gradient(90deg, #fff 0%, #f47983 100%);

}

.breaker {

margin: 2em 0;

text-align: center;

}

.breaker h3 {

color: #bfbfbf;

}

.breaker h3:before {

content: "";

display: block;

border-top: solid 1px #e5e0e0;

width: 100%;

height: 1px;

position: absolute;

top: 50%;

z-index: 1;

}

.breaker h3 span {

background: #fff;

padding: 0 20px;

position: relative;

z-index: 5;

}

img {

-webkit-transition: all 500ms ease;

transition: all 500ms ease;

}

.mason-img:after {

content: '+';

font-size: 3em;

position: relative;

top: 0;

left: 20%;

color: #e5e0e0;

}

.text-holder {

margin-top: 1em;

}

h1,

h2,

h3,

h4,

h5,

h6 {

font-family: Oxygen;

}

p {

font-size: 0.8em;

}

footer {

background: #f08f90;

padding: 0.75em;

}

footer h6 {

color: #fff;

font-weight: 100;

}

@media only screen and (max-width: 1025px) {

.mason-img,

.lola-img {

margin: 2em 0;

}

.mason-img:after {

display: none;

}

.mason,

.chlo,

.lola {

opacity: 1;

}

}

.heart-shape {

position: relative;

margin: 1em auto 0.2em auto;

width: 14px;

height: 14px;

-webkit-transform: rotate(45deg);

-ms-transform: rotate(45deg);

transform: rotate(45deg);

background-color: #f47983;

}

.heart-shape:before,

.heart-shape:after {

position: absolute;

width: 14px;

height: 14px;

content: '';

border-radius: 50%;

background-color: #f47983;

}

.heart-shape:before {

bottom: 0px;

left: -7px;

}

.heart-shape:after {

top: -7px;

right: 0px;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值