How to make the Selected Option the width of the current Selected Option's text?
问题 I am trying to make the Select Option to have the width of the current Selected Option. My code is the standard HTML for a Select Option dropdown: <select name="search_options"> <option value="all">All</option> <option value="entertainment">Entertainment</option> <option value="newsandpolitics">News & Politics</option> <option value="sports">Sports</option> <option value="lifestyle">Lifestyle</option> <option value="health">Health</option> <option value="scienceandtech">Science & Tech</option