最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

【html】做一個簡單搜索框

2023-06-03 22:32 作者:吾乃意  | 我要投稿


例如

We always use the search box in the internet.

The picture above is an example.


So, what should we do to make such box load on the web page?

Let's realize the process.


Such search box use the form(表單提交) fuction.

The Html is form.

We write some codes:

<form action="" method="">

<input type="text">

<input type="submit">

</form>

?When we enter the code above, the Web will show us a input box and a button.

如圖

How to enbellish the box to achieve its function?

We should confer the action of form, which is the adress we want to submit.

Then we also need method, like "get" or "post".

Otherwise, the input element also needs the attributes. Such name, we want to send the value to the adress.

At last,? we can use css to create the box appearance which is to add the class.


A case:

例子


可以增加一些修飾的css

例如
例如


各種搜索都可以查看一下,隨便搜索一下看一下提交的搜索信息賦予的參數(shù)名。

例如


【html】做一個簡單搜索框的評論 (共 條)

分享到微博請遵守國家法律
武清区| 高阳县| 永康市| 从江县| 盐津县| 乌兰察布市| 东兰县| 缙云县| 延寿县| 宜昌市| 白银市| 云安县| 玛多县| 内乡县| 武穴市| 正蓝旗| 泊头市| 长兴县| 会昌县| 江达县| 溧阳市| 开封市| 洛宁县| 祁阳县| 龙川县| 连州市| 芜湖市| 丹凤县| 施甸县| 监利县| 尖扎县| 柳州市| 武穴市| 大厂| 邢台县| 白河县| 秭归县| 合阳县| 津市市| 桃江县| 霞浦县|