如何增加文本框的高度?(连同它的字体大小)
How do you increase the height of an textbox? (along with its font size)
我假设从您提出问题的方式来看,您想在页面呈现后更改大小?
I'm assuming from the way you worded the question that you want to change the size after the page has rendered?
在 Javascript 中,您可以操作 DOM CSS 属性,例如:
In Javascript, you can manipulate DOM CSS properties, for example:
document.getElementById('textboxid').style.height="200px";
document.getElementById('textboxid').style.fontSize="14pt";
如果您只是想指定高度和字体大小,请使用 CSS 或样式属性,例如
If you simply want to specify the height and font size, use CSS or style attributes, e.g.
//in your CSS file or <style> tag
#textboxid
{
height:200px;
font-size:14pt;
}
<!--in your HTML-->
<input id="textboxid" ...>
或者
<input style="height:200px;font-size:14pt;" .....>
这篇关于你如何增加一个html文本框的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
触发点击传单标记Trigger click on leaflet marker(触发点击传单标记)
将外部geojson添加到传单层Add external geojson to leaflet layer(将外部geojson添加到传单层)
Leaflet - 在弹出窗口中获取标记的纬度和经度Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在弹出窗口中获取标记的纬度和经度)
如何使用传单 js 在地图上精确放置 div 元素?How to precisely place a div element on a map using leaflet js?(如何使用传单 js 在地图上精确放置 div 元素?)
html2canvas 捕获除内部画布内容之外的所有内容html2canvas captures everything except the content of an inner canvas(html2canvas 捕获除内部画布内容之外的所有内容)
传单:不要在双击时触发点击事件功能leaflet: don#39;t fire click event function on doubleclick(传单:不要在双击时触发点击事件功能)