当前位置:网站首页>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>
边栏推荐
- Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
- redis你到底懂不懂之list
- Sqlite数据库存储目录结构邻接表的实现2-目录树的构建
- What has happened from server to cloud hosting?
- Smart regulation enters the market, where will meituan and other Internet service platforms go
- Common selectors are
- 【测试面试题】页面很卡的原因分析及解决方案
- tourist的NTT模板
- Prompt configure: error: required tool not found: libtool solution when configuring and installing crosstool ng tool
- Summary of weidongshan phase II course content
猜你喜欢
QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements
他们齐聚 2022 ECUG Con,只为「中国技术力量」
爬虫实战(八):爬表情包
[programming problem] [scratch Level 2] draw ten squares in December 2019
QT establish signal slots between different classes and transfer parameters
第一讲:链表中环的入口结点
Daily question brushing record (16)
They gathered at the 2022 ecug con just for "China's technological power"
Lecture 1: the entry node of the link in the linked list
What has happened from server to cloud hosting?
随机推荐
【测试面试题】页面很卡的原因分析及解决方案
赞!idea 如何单窗口打开多个项目?
A brief history of information by James Gleick
某马旅游网站开发(对servlet的优化)
Smart regulation enters the market, where will meituan and other Internet service platforms go
快速上手使用本地测试工具postman
《因果性Causality》教程,哥本哈根大学Jonas Peters讲授
ReentrantLock 公平锁源码 第0篇
Basic principle and usage of dynamic library, -fpic option context
如果在构造函数中抛出异常,最好的做法是防止内存泄漏?
If an exception is thrown in the constructor, the best way is to prevent memory leakage?
redis你到底懂不懂之list
C language 005: common examples
Su embedded training - day4
How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
[OBS] the official configuration is use_ GPU_ Priority effect is true
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades(KDD20)
QT establish signal slots between different classes and transfer parameters
Experience of autumn recruitment in 22 years
詹姆斯·格雷克《信息简史》读后感记录