I'm using a bookmarklet that inserts a script tag into the current web page.
This script has some UI and an "input type=submit....
" tag in it.
Web page A has chosen not to style "input type=submit..
" tags whereas web page B has styled them.
This results in the bookmarklet displaying differently styled submit
buttons based on the underlying page's style.
I want the submit buttons to be styled identically on all web pages in its default manner.
One solution is to set the CSS style for the submit button within my script
so it shows up identically on all pages. (This is what I have done for all
other tags).
My question is:
- How do I set the CSS style for the submit button so it displays in a
'default manner' or ?
- Can one remove existing styling, and, if so, how for the button so that it displays in the 'default manner'?
In other words, how can I have the submit buttons within the UI of my
bookmarklet be displayed in the 'default manner' regardless of whether
the underlying web page has chosen to style it or not?
Note: By 'default manner' I mean the way the submit button is displayed when no styling is added to it. For example the 'Google search' or
'I'm feeling lucky' buttons on http://www.google.com.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…