HTML的搜索框

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>搜索框</title>
    <style>
        #demo{background-color:rgba(125,125,125,0.2); height:45px; width:300px;}
    </style>
</head>
<body>

<p>WWF's goal is to:
<q>Build a future where people live in harmony with nature.</q>
<!--q標籤添加雙引號-->
We hope they succeed.</p>
<form action="" id="demo">
<input type="text" placeholder="搜索......." style="margin:3px;border:1px solid gray;border-radius:2px;width:290px;height:36px;">
</form>
</body>
</html>

瀏覽器顯示

blob.png

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章