Coder Social home page Coder Social logo

Comments (3)

imsyy avatar imsyy commented on August 23, 2024

正在想办法解决这个问题 😂

from home.

first19326 avatar first19326 commented on August 23, 2024

@Jerry-FaGe 这个问题,我可以给你个解决方案,首页的话应该算完美,但是其他页面不是特别完美,首页这个地方的容器有个 margin-left 的样式,你调整为 padding-left 就可以解决这个问题。归根究底这个问题是由于字体样式造成的,因为这个字体会超出容器限制。

from home.

Jerry-FaGe avatar Jerry-FaGe commented on August 23, 2024

@Jerry-FaGe 这个问题,我可以给你个解决方案,首页的话应该算完美,但是其他页面不是特别完美,首页这个地方的容器有个 margin-left 的样式,你调整为 padding-left 就可以解决这个问题。归根究底这个问题是由于字体样式造成的,因为这个字体会超出容器限制。

感谢你提供的思路,我调整出了适合我的样式,以下放出我的调整以供参考:

.name {
  width: 100%;
  height: 142px;
- margin-left: 12px;
+ // margin-left: 12px;
  transform: translateY(-15px);
  font-family: "Pacifico-Regular";

  .bg {
    font-size: 5rem;
+   padding-left: 1.2rem;
  }
.bg {
  font-size: 5rem;
+ padding-left: 1.2rem;
}

只测试了小写字母 j 的表现,其他字母因为有字体压缩就懒得测了(
本人不咋懂前端,如果这样写兼容性会更好的话希望 @imsyy 可以采纳或者我提个 pr

现在就剩下过长域名会超出引言框这里的样式不知道该怎么调整了

image

from home.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.