一,效果圖。
二,代碼。
DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS 教程title>
<style>
body {
background-color: #d0e4fe;
}
h1 {
color: range;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
style>
head>
<body>
<h1>css 實(shí)例!h1>
<p>這是一個段落p>
body>
html>
參考資料:《菜鳥教程》
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/1349.html
一,效果圖。 二,代碼。 DOCTYPE html> CSS 語法 p { color: red; text-align: center; } Hello world! this paragraph is styled with css ? 參考資料:《菜鳥教程》
一,效果圖。 二,代碼。 DOCTYPE html> CSS id和class選擇器 #para1 { text-align: center; color: red; } .center { text-align: center; } p.center...
摘要:實(shí)例改文本插入在元素中該段落有自己的背景顏色背景圖片不重復(fù),設(shè)置實(shí)例背景圖片只顯示一次,并與文本分開實(shí)例中還添加了屬性用于讓圖片與文本間隔開參考資料菜鳥教程一,效果圖。 二,代碼。 DOCTYPE html> CSS backgrounds h1 { background-color: #6495ed; } ...
一,效果圖。 ? 二,代碼。 ? DOCTYPE html> CSS Fonts(字體) body { font-size: 100%; } h1 { font-style: normal; font-size: 40px; font-size: 2.5em; ...
一,效果圖。 二,代碼。 DOCTYPE html> CSS 鏈接(link) a:link { color: #ff0000; text-decoration: none; background-color: #b2ff99; } a:visited { co...
閱讀 2076·2023-04-26 02:15
閱讀 2324·2021-11-19 09:40
閱讀 1083·2021-10-27 14:13
閱讀 3358·2021-08-23 09:44
閱讀 3650·2019-12-27 12:24
閱讀 681·2019-08-30 15:53
閱讀 1200·2019-08-30 10:53
閱讀 2189·2019-08-26 12:14