Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537 Warning: error_log(/data/www/wwwroot/hmttv.cn/caches/error_log.php): failed to open stream: Permission denied in /data/www/wwwroot/hmttv.cn/phpcms/libs/functions/global.func.php on line 537
果你需要在網(wǎng)頁上創(chuàng)建標(biāo)題,或者在網(wǎng)站上改變不同頁面上的文本大小,或段落中的某個(gè)特定單詞突出,可以通過使用html命令更改文本大小來做到這一點(diǎn)。但凡上過html培訓(xùn)學(xué)習(xí)的人都會(huì)很輕輕松學(xué)會(huì)這個(gè)操作,有導(dǎo)師指導(dǎo),學(xué)起來要容易的多。
更改前,先備份
無論什么時(shí)候你要更改網(wǎng)頁,無論你只是在html中更改文本大小,還是在添加照片或?qū)⒈尘皥D像更改為新模式時(shí),在更改前始終要記住一點(diǎn):備份你現(xiàn)有的頁面。這將確保如果在更改期間發(fā)生錯(cuò)誤,并且此錯(cuò)誤導(dǎo)致網(wǎng)頁丟失,則可以恢復(fù)到起始位置,然后再試一次。
若要復(fù)制網(wǎng)頁,請(qǐng)打開該文件并復(fù)制html。然后將頁面html的副本粘貼到一個(gè)程序中,比如程序員的記事本,這是一個(gè)免費(fèi)的實(shí)用程序,供網(wǎng)頁設(shè)計(jì)者/程序員使用,用于CSS、html和其他程序。
在更改的操作中,備份是經(jīng)常要做的事,這一點(diǎn)非常重要,一般你在html培訓(xùn)學(xué)習(xí)時(shí),老師都會(huì)強(qiáng)調(diào)這一點(diǎn)的。
如何在HTML中更改文本大小
首先,找到要更改的一行或多行文本。使用
這個(gè)標(biāo)記
在html中更改文本大小是一個(gè)簡(jiǎn)單的編碼問題,你可以學(xué)會(huì)自己做,你也可以使用各種額外的html技巧。通過參加html培訓(xùn)學(xué)習(xí),對(duì)html會(huì)有更系統(tǒng)更全面的認(rèn)識(shí),零基礎(chǔ)也能輕松學(xué)到有用的知識(shí)。
了解更多
<!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; //內(nèi)邊框
}
/*給'注冊(cè)'賦予樣式*/
.register{
width:280px ; //寬
height: 50px; //高
background-color: skyblue; //背景顏色
border-radius: 10px; //邊框弧度
}
/*將所有邊框都改變*/
*{
border-radius: 5px; 邊框弧度
}
/*使用class選擇器,賦予number寬高和邊框*/
.number{
width: 185px; //寬
height: 27px; //高
border-width: 1px; //邊框?qū)挾?
}
/*id選擇器*/
#two{
width: 55px; //寬
border-width: 1px; 邊框?qū)挾? }
/*id選擇器*/
#phone{
width: 103px; //寬
}
/*class 選擇器*/
.boxs{
zoom: 75%; //清除浮動(dòng)
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; //定位 相對(duì)定位
left: 310px; //定位后左移
bottom: 32px; //定位后下移
}
</style>
</head>
<body>
<div id="box">
<h1>請(qǐng)注冊(cè)</h1>
<p style="color: darkgray">已有帳號(hào)?<a href="https://im.qq.com/index">登錄</a></p>
<form action="" method="post">
<label for="name">用戶名</label>
<input type="text" placeholder="請(qǐng)輸入用戶名" id="name" class="number"> <br>
<label for="phone">手機(jī)號(hào)</label>
<select name="" id="two" class="number">
<optgroup>
<option style="" class="">+86</option>
</optgroup>
</select>
<input type="text" placeholder="請(qǐng)輸入手機(jī)號(hào)" id="phone" class="number"> <br>
<label for="mima">密?碼</label>
<input type="password" placeholder="請(qǐng)輸入密碼" id="mima" class="number"> <br>
<label for="mima">驗(yàn)證碼</label>
<input type="password" placeholder="請(qǐng)輸入驗(yàn)證碼" id="is" class="number">
<div class="box_a"></div>
<div class="boxs">
<input type="radio" id="" class="accept">閱讀并接受協(xié)議<br>
</div>
<input type="submit" value="注冊(cè)" class="register" >
</form>
</div>
</body>
</html>
在這里插入圖片描述
調(diào)整網(wǎng)頁頁面字體大小:
在瀏覽器打開一個(gè)頁面,同時(shí)按住鍵盤Ctrl鍵+鼠標(biāo)滾輪(或者鍵盤“+/-”),即可調(diào)整網(wǎng)頁字體大小;
還有一種方法是點(diǎn)擊網(wǎng)頁上的工具欄圖標(biāo),點(diǎn)擊網(wǎng)頁縮放,選擇相應(yīng)的字體大小進(jìn)行調(diào)整。
(本文轉(zhuǎn)發(fā)自 http://www.mengniukeji.xyz/1/132.html 商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處)
*請(qǐng)認(rèn)真填寫需求信息,我們會(huì)在24小時(shí)內(nèi)與您取得聯(lián)系。