GithubHelp home page GithubHelp logo

uniapp + tailwindcss 在H5环境下运行。为什么只设置了border-t上边框,但是显示有4个边框。小程序没问题,H5就不行,调试的css样式中还找不到其他三个边框的属性。大佬们有什么办法去改吗? about uni-app HOT 6 CLOSED

guoyanshuo avatar guoyanshuo commented on September 25, 2024
uniapp + tailwindcss 在H5环境下运行。为什么只设置了border-t上边框,但是显示有4个边框。小程序没问题,H5就不行,调试的css样式中还找不到其他三个边框的属性。大佬们有什么办法去改吗?

from uni-app.

Comments (6)

Otto-J avatar Otto-J commented on September 25, 2024

你提到微信可以 h5 不行,提供下复现工程吧,切换浏览器、隐私模式正常吗?手动写 css/style 是否表现正常?

from uni-app.

chasonma avatar chasonma commented on September 25, 2024

改成 border-0 border-t

from uni-app.

guoyanshuo avatar guoyanshuo commented on September 25, 2024

改成 border-0 border-t

感谢回复。 写成border-0 border-t 就只有上边框了。要改的比较多,直接在全局加了个border-width: 0; h5出现这个问题就比较奇怪

from uni-app.

guoyanshuo avatar guoyanshuo commented on September 25, 2024

你提到微信可以 h5 不行,提供下复现工程吧,切换浏览器、隐私模式正常吗?手动写 css/style 是否表现正常?

感谢回复。写成border-0 border-t,或者border-width: 0; 就没问题了。

from uni-app.

Otto-J avatar Otto-J commented on September 25, 2024

这个问题我怀疑还是业务问题,你的解决方案是补充完整 css 覆盖行为。

我运行 tailwind +uni-app+vue3到 web 平台,

 <div class="border-t  text-3xl font-bold underline">
    Hello world!
    </div>

只有上面的边框,如果你感兴趣可以进一步分析,如果不需要这个问题就不继续跟进了,怀疑还是你义务上或者运行时有css 影响

补充:我看到你已经关闭了,那这个问题如果你有意继续追查可以继续联系我,提供相关工程

from uni-app.

guoyanshuo avatar guoyanshuo commented on September 25, 2024

这个问题我怀疑还是业务问题,你的解决方案是补充完整 css 覆盖行为。

我运行 tailwind +uni-app+vue3到 web 平台,

 <div class="border-t  text-3xl font-bold underline">
    Hello world!
    </div>

只有上面的边框,如果你感兴趣可以进一步分析,如果不需要这个问题就不继续跟进了,怀疑还是你义务上或者运行时有css 影响

补充:我看到你已经关闭了,那这个问题如果你有意继续追查可以继续联系我,提供相关工程

您好,我把问题代码上传到git仓库了,https://github.com/guoyanshuo/uni-tailwind-border-error.git 。执行npm run dev:h5 运行H5页面。还是存在border-t的问题,而且不加border-solid的话,所有边框都不显示。 您方便的时候请帮忙看一下为什么会出现这个问题。
f5fb896586dea41765b174314816872

from uni-app.

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.