CSS3 text属性
text.html
<head> <title>text</title> <link rel="stylesheet" href="style_text.css" type="text/css" /> </head> <body> <h2>Hello World</h2> <p>无穷的远方,无数的人们,都与我有关,很高兴和你建立这份连结。</p> </body>
text-align
style_text.css
h2 { text-align: center; font-family: Georgia, "Times New Roman", Times, serif; font-weight: bold; font-style: italic; } p { text-align: center; font-style: italic; font-weight: bold; }
text-decoration
text-indent
text-shadow
style_text.css
h2 { text-align: center; font-family: Georgia, "Times New Roman", Times, serif; font-weight: bold; font-style: italic; } p { text-align: center; text-decoration: underline; text-shadow: 2px 2px 4px black; color: white; font-style: italic; font-weight: bold; }
本文分享自微信公众号 - 小白也编程(program_learning),作者:LRainner
原文出处及转载信息见文内详细说明,如有侵权,请联系 yunjia_community@tencent.com 删除。
原始发表时间:2020-02-16
本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。
我来说两句