基于Web实现诗词欣赏网页——钱塘湖春行
来自Web网页应用时的学习,记录一下学习过程,本作品代码仅供参考。
一、代码:
#textbox{
border: 2px solid rgb(41, 40, 40);
text-align: center;
width: 850px;
margin: 20px auto;
margin-top: 0%;
height: 500px ;
}
.title{
color: rgb(116, 0, 0);
font-size: 40px;
font-weight: bold;
font-family: 楷体;
}
#a{
text-align: left;
position: fixed;
margin: 10px 5px;
}
.author{
color: rgb(116, 0, 0);
font-weight: bold;
font-family: 隶书;
font-size: 20px;
}
#text{
height: 45%;
position: relative;
width: 550px;
}
#left{
width: 510px;
height: 225px;
margin-left: 25px;
position: fixed;
}
#left p{
margin-top: 35px;
position: relative;
letter-spacing: 4px;
line-height: 40px;
font-family: 方正姚体;
color: rgb(116, 0, 0);
font-size: x-large;
}
#right{
margin-left: 505px;
width: 330px;
height: 225px;
position: fixed;
}
#right img{
text-align: left;
margin-top: 10px;
height: 210px;
width: 160px;
}
#footer{
text-align: left;
margin-top: 40px;
}
#footer p{
font-family: 楷体;
line-height: 25px;
}
二、结果展示:
本作品只是针对诗词欣赏网页中其中一张网页练习发布,其余页面可以直接套用模板。
END
