五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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】做一個簡單搜索框的評論 (共 條)

分享到微博請遵守國家法律
沭阳县| 万全县| 陕西省| 龙岩市| 黄梅县| 慈利县| 日照市| 汕尾市| 黄石市| 新龙县| 改则县| 兴海县| 石林| 南开区| 通化市| 遂昌县| 右玉县| 灌阳县| 津市市| 德清县| 黔东| 区。| 青河县| 浙江省| 怀柔区| 清远市| 开原市| 保山市| 额尔古纳市| 封丘县| 堆龙德庆县| 汾西县| 吉首市| 疏附县| 交城县| 海口市| 安龙县| 丘北县| 惠水县| 丰顺县| 清新县|