果你需要在網頁上創建標題,或者在網站上改變不同頁面上的文本大小,或段落中的某個特定單詞突出,可以通過使用html命令更改文本大小來做到這一點。但凡上過html培訓學習的人都會很輕輕松學會這個操作,有導師指導,學起來要容易的多。
更改前,先備份
無論什么時候你要更改網頁,無論你只是在html中更改文本大小,還是在添加照片或將背景圖像更改為新模式時,在更改前始終要記住一點:備份你現有的頁面。這將確保如果在更改期間發生錯誤,并且此錯誤導致網頁丟失,則可以恢復到起始位置,然后再試一次。
若要復制網頁,請打開該文件并復制html。然后將頁面html的副本粘貼到一個程序中,比如程序員的記事本,這是一個免費的實用程序,供網頁設計者/程序員使用,用于CSS、html和其他程序。
在更改的操作中,備份是經常要做的事,這一點非常重要,一般你在html培訓學習時,老師都會強調這一點的。
如何在HTML中更改文本大小
首先,找到要更改的一行或多行文本。使用
這個標記
在html中更改文本大小是一個簡單的編碼問題,你可以學會自己做,你也可以使用各種額外的html技巧。通過參加html培訓學習,對html會有更系統更全面的認識,零基礎也能輕松學到有用的知識。
了解更多
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登錄頁面</title>
/*總體的樣式*/
<style>
/*盒子樣式*/
#box{
width: 350px; //寬
height: 450px; //高
border: 1px solid black; //邊框
border-radius: 10px; //邊框弧度
font-family: 黑體; //字體
letter-spacing:8px; //段間距
word-spacing: 10px; //字間距
line-height: 40px; //行高
font-size: 18px; //字大小
padding: 20px; //內邊框
}
/*給'注冊'賦予樣式*/
.register{
width:280px ; //寬
height: 50px; //高
background-color: skyblue; //背景顏色
border-radius: 10px; //邊框弧度
}
/*將所有邊框都改變*/
*{
border-radius: 5px; 邊框弧度
}
/*使用class選擇器,賦予number寬高和邊框*/
.number{
width: 185px; //寬
height: 27px; //高
border-width: 1px; //邊框寬度
}
/*id選擇器*/
#two{
width: 55px; //寬
border-width: 1px; 邊框寬度
}
/*id選擇器*/
#phone{
width: 103px; //寬
}
/*class 選擇器*/
.boxs{
zoom: 75%; //清除浮動
color: darkgray; //顏色
}
/*class選擇器*/
.box_a{
width: 50px; //寬
height: 50px; //高
background-image: url("../image/04.jpg "); //背景圖片
background-repeat: no-repeat; // 是否平鋪
background-size: 50px 25px; //背景尺寸
position: relative; //定位 相對定位
left: 310px; //定位后左移
bottom: 32px; //定位后下移
}
</style>
</head>
<body>
<div id="box">
<h1>請注冊</h1>
<p style="color: darkgray">已有帳號?<a href="https://im.qq.com/index">登錄</a></p>
<form action="" method="post">
<label for="name">用戶名</label>
<input type="text" placeholder="請輸入用戶名" id="name" class="number"> <br>
<label for="phone">手機號</label>
<select name="" id="two" class="number">
<optgroup>
<option style="" class="">+86</option>
</optgroup>
</select>
<input type="text" placeholder="請輸入手機號" id="phone" class="number"> <br>
<label for="mima">密?碼</label>
<input type="password" placeholder="請輸入密碼" id="mima" class="number"> <br>
<label for="mima">驗證碼</label>
<input type="password" placeholder="請輸入驗證碼" id="is" class="number">
<div class="box_a"></div>
<div class="boxs">
<input type="radio" id="" class="accept">閱讀并接受協議<br>
</div>
<input type="submit" value="注冊" class="register" >
</form>
</div>
</body>
</html>
在這里插入圖片描述
調整網頁頁面字體大小:
在瀏覽器打開一個頁面,同時按住鍵盤Ctrl鍵+鼠標滾輪(或者鍵盤“+/-”),即可調整網頁字體大小;
還有一種方法是點擊網頁上的工具欄圖標,點擊網頁縮放,選擇相應的字體大小進行調整。
(本文轉發自 http://www.mengniukeji.xyz/1/132.html 商業轉載請聯系作者獲得授權,非商業轉載請注明出處)
*請認真填寫需求信息,我們會在24小時內與您取得聯系。