当前位置:网站首页>Cancel the down arrow of the default style of select and set the default word of select
Cancel the down arrow of the default style of select and set the default word of select
2022-07-08 00:35:00 【Super code force】
Cancel select The default style of the down arrow
The downward arrow is shown in the figure below :

Here you can set a property like this appearance:none; It can be removed select Default style for , It looks like the following figure :

Style code :
// style
<style>
select{
width: 100px;
appearance:none; // Clear default style
}
</style>
// structure
<body>
<form action="">
<select name="" id="">
<option value=""> Beijing </option>
<option value=""> wuhan </option>
<option value=""> Shanghai </option>
</select>
</form>
</body>select Set default typeface
The default text is displayed only once , Do not appear in the options , The effect is as follows :

Style code :
<body>
<form action="">
<select>
// Key lines of code
<option selected="selected" disabled="disabled" style='display: none' value=''> Please choose gender </option>
// Options
<option> male </option>
<option> Woman </option>
</select>
</form>
</body>
边栏推荐
- Reentrantlock fair lock source code Chapter 0
- Codeforces Round #804 (Div. 2)(A~D)
- 【obs】官方是配置USE_GPU_PRIORITY 效果为TRUE的
- Summary of the third course of weidongshan
- Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
- Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
- Summary of weidongshan phase II course content
- A brief history of information by James Gleick
- Qt不同类之间建立信号槽,并传递参数
- 华为交换机S5735S-L24T4S-QA2无法telnet远程访问
猜你喜欢
随机推荐
How to insert highlighted code blocks in WPS and word
Emotional post station 010: things that contemporary college students should understand
手写一个模拟的ReentrantLock
丸子官网小程序配置教程来了(附详细步骤)
赞!idea 如何单窗口打开多个项目?
Development of a horse tourism website (optimization of servlet)
5g NR system messages
华为交换机S5735S-L24T4S-QA2无法telnet远程访问
Leetcode brush questions
【转载】解决conda安装pytorch过慢的问题
动态库基本原理和使用方法,-fPIC 选项的来龙去脉
Hotel
应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
Is 35 really a career crisis? No, my skills are accumulating, and the more I eat, the better
ABAP ALV LVC template
备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
Open display PDF file in web page
The standby database has been delayed. Check that the MRP is wait_ for_ Log, apply after restarting MRP_ Log but wait again later_ for_ log







