css实现首个汉字放大段落排版效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现首个汉字放大段落排版效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { margin: 0; padding: 0; box-sizing: border-box; } html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { min-height: 100vh; display: grid; place-items: center; font-family: "Nunito", system-ui, sans-serif; font-size: 1.25rem; line-height: 1.5; padding: 1.5rem; color: #3c3852; } p { max-width: 36ch; } .dropcap { float: left; font-size: 2em; line-height: 1; padding: 0.5em; margin-top: 0.15em; margin-right: 0.3em; background:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0