Reputation: 3950
I am working on fixing a style sheet for mobile devices for a website and I am using the DevTools that come built into Chrome for testing purposes. I am using Chrome version 53.0.2785.116 on a Windows operating system right now.
My problem is that, when I'm using the DevTools, the <select>
elements' expanded section (the part that normally drop's down) is completely off center and appears as a black box.
At first I thought it was something wrong in the style, but I created new .html file and simply added a <select>
element to the page and have found the same thing.
I realize that on the actual device the drop down section is displayed differently (as a section at the bottom of the device with the options in a Rolodex type animation); however, I am unable to use the select menu for testing purposes...
Is there any way around this problem?
Here is my code:
<!DOCTYPE html>
<html>
<title></title>
<head>
</head>
<body>
<select>
<option>a</option>
<option>b</option>
<option>c</option>
<option>d</option>
<option>e</option>
</select>
</body>
</html>
Here is a screenshot of the problem:
Upvotes: 4
Views: 5966
Reputation: 1509
For testing purposes you can change the device type from mobile to desktop(touch). This will allow you to get around the issue with the select
element and mobile emulation.
To enable these options open your developer tools by righting and inspecting the page you are on or press f12. Click on the menu icon (3 dots) to the right of the rotate icon (menu icon below chromes top right) - Edit: see image dots circled in red.
To save having to do this all the time you can create a custom device profile
EDIT: For Chrome version 53.0.2785.143 for Windows, these are the steps you would take to accomplish adding a custom device type:
Upvotes: 3