0

In a chrome extension (so feel free to make Chrome-specific suggestions), I'd like to make a textarea and a button on a single row. The textarea has a defined height (in rows). The button should be the same height as the textarea. Ideally some attribute or setting allows me to manually determine the width of the button versus the width of the textarea. Ideally this is just a css/html solution, not javascript if I can avoid it.

4

1 回答 1

1

您将需要使用flex box

{ align-items:stretch }

检查此插图:http ://www.w3.org/TR/css3-flexbox/images/flex-align.svg

于 2013-08-04T19:12:57.733 回答