五月天青色头像情侣网名,国产亚洲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】做一個簡單搜索框的評論 (共 條)

分享到微博請遵守國家法律
潍坊市| 当涂县| 开封县| 馆陶县| 海淀区| 林西县| 绥棱县| 高陵县| 教育| 梅河口市| 怀来县| 扎兰屯市| 集贤县| 手游| 焉耆| 黄陵县| 沾益县| 诸城市| 浮山县| 五原县| 武强县| 宜兰市| 府谷县| 广饶县| 邢台市| 旬邑县| 周宁县| 武威市| 西林县| 怀宁县| 贵州省| 上犹县| 日喀则市| 磐石市| 乌鲁木齐县| 台南市| 祁阳县| 乌兰察布市| 永定县| 宜城市| 冀州市|