这是一个用于搜索某个数据库的JavaScript。该脚本会生成一个Search
按钮来提交查询,有没有办法调整此按钮中文本的字体/大小?
<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>
答案 0 :(得分:1)
你可以用css:
input[type="submit"] {
font-size: 3rem; /* or whatever...*/
}
&#13;
<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>
&#13;