如何设置电子邮件中的下拉菜单样式?

时间:2015-09-09 12:46:11

标签: html css

我正在使用下面的代码,但它不允许格式化,并且它不允许丢弃项目下面的内容在电子邮件中向下移动。

<select>
  <option value="first">First-time Vanguard Events app users:                              </option>
  <option value="download">&#8226; Download the Vanguard Events app to your Apple or Android device</option>
  <option value="allow">&#8226; Please make sure to allow push notifications from the app.</option>
  <option value="launch">&#8226; Launch the Vanguard Events app and find Connect Fall 2015 Sales Conference.</option>
  <option value="enter">&#8226; Enter the event code <strong>2015fall</strong> </option>
  <option value="login1">&#8226; To log in, look to the left side of your screen. </option>
  <option value="login2">&nbsp;&nbsp;&nbsp;If you're using your smartphone, tap on the three horizontal lines</option>
  <option value="login3">&nbsp;&nbsp;&nbsp;in the upper left corner, which will reveal a link for logging in.</option>
  <option value="login4">&nbsp;&nbsp;&nbsp;To log in on a tablet, tap on the "Log in for more features" in the upper left corner.</option>
  <option value="enter">&#8226; When logging in, enter your name or email and the Cvent confirmation code, XXXXX</option>
</select>

1 个答案:

答案 0 :(得分:2)

两点:

  1. 请勿在电子邮件html中使用表单控件。
  2. Styling options doesn't work all to well / isn't allowed
  3. 您实际问题的答案是重新考虑您的设置。评论者已经指出了一个解决方案:链接到电子邮件中的实际Web应用程序。即便如此,您仍需要使用Chosenselect2库替换select控件。