div+Css布局实现旧的羊皮卷信件文章纸张效果代码

代码语言:html

所属分类:布局界面

代码描述:div+Css布局实现旧的羊皮卷信件文章纸张效果代码

代码标签: div Css 布局 旧的 羊皮卷 信件 文章 纸张

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  


  
  
<style>
/* CSS for a stylish drop cap paragraph with an old book look */
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap");
body {
	margin: 0;
	padding: 0;
	box-.sizing: border-box;
	background: url("//repo.bfw.wiki/bfwrepo/image/63d9b2e9df623.png");
	background-size: cover;
}
.card {
	position: relative;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%) perspective(850px) rotateY(5deg);
	text-align: justify;
	width: 36rem;
	height: auto;
	background-color: #fdf5e6;
	background: url("//repo.bfw.wiki/bfwrepo/image/6737097790d81.png");
	border: 1px solid #d3c4a3;
	padding: 10px 20px;
	margin: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
	font-size: 1.4rem;
	font-family: "Dancing Script", serif;
}

.drop-cap {
	margin-left: 1.8rem;
	font-size: 1.4rem;
	line-height: 1.6;
	text-align: justify;
	font-family: "Dancing Script", serif;
}
.card h2,
.card h4 {
	font-family: "Dancing Script", serif;
}

.drop-cap::first-letter {
	font-size: 3em;
	font-weight: bold;
	float: left;
	margin-right: 0.1em;
	line-height: 1;
	color: #8b4513;
}
</style>


  
  
</head>

<body translate="no">
  <div class="card">
	<h2>A Tale of Artificial Intellect</h2>
	<h4>(...or so ye would naysay.)</h4>
	<p class="drop-cap">In days of yore, when minds of men did dream, of wondrous thoughts and visions yet unseen, there rose a spark, a gleam of future bright, an artifice of intellect an.........完整代码请登录后点击上方下载按钮下载查看

网友评论0