开发者

What is the best accessible and W3C valid way to code a one simple search input box with image button?

开发者 https://www.devze.com 2022-12-17 18:50 出处:网络
What is the best accessible and W3C HTML 4.01 strict valid way to code a one simple search input box with image button(to do search)?

What is the best accessible and W3C HTML 4.01 strict valid way to code a one simple search input box with image button(to do search)?

like this

alt text http://stashbox.org/776012/110024185259-My-Desktop.png

accessible and开发者_StackOverflow中文版 W3C HTML 4.01 strict valid both.


<span class="search"><input type="text" ...><input type="image" ...></span> Where those are the only non-hidden inputs in the form (to get the submit-on-enter behavior).

.search{border:1px solid silver; display:inline-block;} .search input{border:0; background:transparent;} ... give or take (-moz-)border-radius and background on .search.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号