font-stretch
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Thuộc tính font-stretch chỉ ra mức độ co hẹp hoặc mở rộng mong muốn trong các glyph được dùng để hiển thị văn bản.
Note:
Với vai trò là một presentation attribute, font-stretch cũng có thuộc tính CSS tương ứng: font-stretch. Khi cả hai đều được chỉ định, thuộc tính CSS sẽ được ưu tiên.
Bạn có thể dùng thuộc tính này với các phần tử SVG sau:
Lưu ý sử dụng
| Giá trị | Xem font-stretch |
|---|---|
| Giá trị mặc định | normal |
| Có thể animate | Có |
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| CSS Fonts Module Level 4> # font-stretch-prop> |
| Scalable Vector Graphics (SVG) 2> # :~:text=font-stretch> |
Tương thích trình duyệt
Xem thêm
- Thuộc tính CSS
font-stretch