[英]How to set font size and font family at the same p
Can you give me a sample code on how to make a paragraph/text with text size and font, I only know the code that uses different sizes without font, and the code with the font but without resizing, here is my code:你能给我一个关于如何制作带有文本大小和字体的段落/文本的示例代码吗,我只知道使用不同大小而没有字体的代码,以及带有字体但没有调整大小的代码,这是我的代码:
<p style="font-family:arcade classic", "font-size:40px">Use the arrow keys (on your keyboard) to move your frog, avoid cars, jump on logs (flowing on the water), and jump on turtles (note that every few seconds, they swim underwater, then go back on the water's surface again, if you are on top of that turtle and it sinks, you die)</p>
use CSS like使用 CSS 喜欢
p{font-family:"poppins", sans-serif; font-size:2em;}
/* do not forget to import Poppins from google font */ /* 不要忘记从 google 字体导入 Poppins */
You had a syntax problem.你有语法问题。 You should have used a semicolon where you used as @farshid-mousavi said.正如@farshid-mousavi 所说,您应该使用分号。
You must use one citation in your css code您必须在 css 代码中使用一个引用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.