开发者

Button text is excluded from in-page search - is there a clean way to simulate it?

It seems that browsers (FF, Chrome at least) don't include button text in their in-page search. Is there a standard idiom or clean way to simulate this? I expect there's s开发者_JAVA百科ome creative CSS hack to make this work. A want a cross-browser solution which is as clean as possible.

update: This happens when the button is using <input> markup.


If the button text being searched was very important and could not be left out, you might consider adding it beside the button and then naming the button something simple, like "Go!".

Ex.

<p style="float etc.">Descriptive Text</p> <button type="button">Go!</button> 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜