我如何风格的html选择框以省略下拉箭头打印? [英] How can I style an html select box to omit drop down arrow for print?

查看:107
本文介绍了我如何风格的html选择框以省略下拉箭头打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个html select元素,我想打印的样式,使它只是看起来像所选的文本。如何隐藏下拉箭头?

I have an html select element which I would like to style for print so that it just looks like the selected text. How can I hide the drop down arrow?

推荐答案

您不能。

标准中没有指定select元素必须有一个箭头来指示用户它有可选择的选项,或者如何显示这些选项。

There is nothing in the standards that specifies that the select element has to have an arrow to indicate to the user that it has options to choose from, or how those options are shown. As those visual elements are not defined, there is naturally nothing defined for changing them.

您只需在打印时显示不同的元素。

You just have to display a different element when printing.

这篇关于我如何风格的html选择框以省略下拉箭头打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆