国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

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

分享到微博請遵守國家法律
寿光市| 蛟河市| 济源市| 大埔区| 德惠市| 丰都县| 禹城市| 麻江县| 岫岩| 铜陵市| 澄迈县| 乌审旗| 蓬溪县| 图们市| 余江县| 郴州市| 阳山县| 开封县| 上栗县| 海盐县| 盖州市| 丹寨县| 黑水县| 龙门县| 当阳市| 涟水县| 鄂托克前旗| 行唐县| 邢台县| 渭南市| 陆丰市| 洞头县| 吉木乃县| 鲁甸县| 上蔡县| 莱州市| 沭阳县| 泾川县| 九江县| 三河市| 深圳市|