小吐槽:
????有感于每次搜索都要不自覺的接受一些廣告與垃圾信息癌幕,所以一直想做一個純凈的搜索頁面,并且能夠快捷打開。
效果展示與功能介紹:
????效果頁面如下,快捷鍵 Shift+Alt+t就可以打開 闹蒜,頁面潔凈,字體比較大抑淫,且光標(biāo)自動固定在文本框中绷落。
編寫程序代碼:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 設(shè)置字體與格式大小1 -->
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.text2{width:500px;height:150px;font-size:60px}
</style>
<!-- 設(shè)置字體與格式大小 2-->
<style type="text/css">
.text1{width:300px;height:150px;font-size:60px}
</style>
</head>
<!-- 光標(biāo)聚焦在id為"lz"的input -->
<body onload="document.getElementById('lz').focus()">
<form action="http://www.baidu.com/baidu" target="_blank">
<!-- 設(shè)置div下控件居中 -->
<div style="width:100%;text-align:center">
<!-- 手動調(diào)節(jié)上下居中 -->
<br><br><br><br><br><br><br><br><br><br>
<!-- 左側(cè)為輸入窗口,右側(cè)為提交按鈕 -->
<input type=text id="lz" class="text2" name=word >
<input type="submit"? class="text1" value="百度搜索" >
</div>
</form>
</body>
</html>
設(shè)置快捷鍵:
????右鍵自己編寫的baidu.html->發(fā)送桌面快捷方式
????右鍵新建立的快捷方式->屬性->快捷鍵始苇,可以設(shè)置屬于自己的快捷鍵哦砌烁。