设置字体的长和宽_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:43
Original
1882 people have browsed it

想要的样子如图所示。

设想用方框和5个x字母组成,但是不知道能不能设置x字母的高度和宽度, 当设置font-size为较大的px值时,发现字母的线条变宽,而且字母的长宽相同。
nbsp;html>


    



 

  
xxxxx

     



回复讨论(解决方案)

字体的大小控制 使得字体等比的缩放,你无法单独的控制字体的长 宽,对于字体而言,没有长宽的说法

要实现这样的效果,那么你可以把X处理成图片,拿图片代替,然后控制图片的长和宽来达到类似的效果

因为图片打包给客户有路径上的问题,所以用的字母X。 如果拼成4个X,上面两个X,下面两个X也OK.不知道X该如何换行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!