---
title: "Discussion on \"Vuetify v-select 設定 width 要寫在外面的自訂 css, 而且外面要有一個 <div>\" | Hashnode"
description: "Discussion on \"Vuetify v-select 設定 width 要寫在外面的自訂 css, 而且外面要有一個 <div>\". 今天問了 chatGPT, 但他給的答案都沒有 div, 沒有效果。原生的 select 用 css 設定 width 卻就可以： https://jsfiddle.net/sunpochin/dLbqe8f0/2/\n直到我看到這篇，偶然的加上 div, 才發現 width 神奇的改變了。https://stackoverflow.com/a/71231747/720276\n做個筆記免得自己忘記，要寫成下面這樣。\n<template>\n      <div class=\"custom-width..."
url: "https://hashnode.com/posts/vuetify-v-select-width-css-div/64f84d51bba0465a1a8ab972"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vuetify v-select 設定 width 要寫在外面的自訂 css, 而且外面要有一個 <div>](https://sunpochin.hashnode.dev/vuetify-v-select-width-css-div?utm_source=hashnode&utm_medium=feed)

今天問了 chatGPT, 但他給的答案都沒有 div, 沒有效果。原生的 select 用 css 設定 width 卻就可以： https://jsfiddle.net/sunpochin/dLbqe8f0/2/ 直到我看到這篇，偶然的加上 div, 才發現 width 神奇的改變了。https://stackoverflow.com/a/71231747/720276 做個筆記免得自己忘記，要寫成下面這樣。 <template> <div class="custom-width...

Sep 6, 2023 · 1 min read · sunpochin.hashnode.dev  
Read the article

-   [#vuetify](https://hashnode.com/tag/vuetify)
-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#v-select](https://hashnode.com/tag/v-select)

## Written by

[Sun Pochin](https://hashnode.com/@sunpochin)

@sunpochin · Taipei, Taiwan

  
[View profile](https://hashnode.com/@sunpochin)

Developer, building thins on web.

I was the main web front-end engineer responsible for developing and maintaining the customer-facing platform for WisdomHall (品學堂) in 2024 Q3 Q4, code reviewed by CTO and a senior engineer. http://learning.wisdomhall.com.tw has total active 257k users, according to their Facebook post: https://www.facebook.com/share/p/1MnjbwZxCV/ My tech stack includes JavaScript, Vue 2, Nuxt 2, git, and Docker.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
