当前位置:网站首页>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>
边栏推荐
- Single machine high concurrency model design
- Operating system principle --- summary of interview knowledge points
- 某马旅游网站开发(对servlet的优化)
- Usage of limit and offset (Reprint)
- Smart regulation enters the market, where will meituan and other Internet service platforms go
- Lecture 1: the entry node of the link in the linked list
- 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
- How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
- “一个优秀程序员可抵五个普通程序员”,差距就在这7个关键点
猜你喜欢
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
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
How to measure whether the product is "just needed, high frequency, pain points"
Play sonar
Development of a horse tourism website (optimization of servlet)
When creating body middleware, express Is there any difference between setting extended to true and false in urlencoded?
语义分割模型库segmentation_models_pytorch的详细使用介绍
After going to ByteDance, I learned that there are so many test engineers with an annual salary of 40W?
接口测试要测试什么?
Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现
随机推荐
Deep dive kotlin collaboration (the end of 23): sharedflow and stateflow
Leetcode brush questions
2022-07-07:原本数组中都是大于0、小于等于k的数字,是一个单调不减的数组, 其中可能有相等的数字,总体趋势是递增的。 但是其中有些位置的数被替换成了0,我们需要求出所有的把0替换的方案数量:
ABAP ALV LVC template
ReentrantLock 公平锁源码 第0篇
redis你到底懂不懂之list
玩转Sonar
Linkedblockingqueue source code analysis - add and delete
Smart regulation enters the market, where will meituan and other Internet service platforms go
ABAP ALV LVC模板
Su embedded training - Day3
腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
Development of a horse tourism website (realization of login, registration and exit function)
52岁的周鸿祎,还年轻吗?
ReentrantLock 公平锁源码 第0篇
华泰证券官方网站开户安全吗?
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务
How to add automatic sorting titles in typora software?
Langchao Yunxi distributed database tracing (II) -- source code analysis