简体   繁体   中英

javascript search box and edit font size

Here is a javascript for searching a certain database. The script generates a Search button to submit the query, is there a way to adjust the font/size of the text in this button?

<script src="http://www.bccls.org/js/jquery-1.7.2.min.js" type="text/javascript" ></script>
<script src="http://www.bccls.org/js/searchPolaris.js?v=2" type="text/javascript" ></script>

<form name="search" id="search" action="javascript:searchPolaris()">
    <input name="query" type="text" id="query" style="width: 220px">
    <input type="hidden" NAME="whichlibrary" id="whichLibrarySelected" value="119">
    <br />
    <input type="submit" value="Search" target="_blank">
    <input type="hidden" name="newWindowCheck" id="newWindowCheck" value="newWindow">
</form>

You can with css:

 input[type="submit"] { font-size: 3rem; /* or whatever...*/ } 
 <script type="text/javascript" src="http://www.bccls.org/js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="http://www.bccls.org/js/searchPolaris.js?v=2"></script> <FORM name="search" id="search" action="javascript:searchPolaris()"> <input name="query" type="text" id="query" style="width: 220px"><input type="hidden" NAME="whichlibrary" id="whichLibrarySelected" value="119"> <br /> <input type="submit" value="Search" target="_blank"><input type="hidden" name="newWindowCheck" id="newWindowCheck" value="newWindow"> </form> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM