GithubHelp home page GithubHelp logo

Comments (9)

blinkfox avatar blinkfox commented on May 18, 2024

@chunchengwei 并没有发现你说的问题呢

from hexo-theme-matery.

chunchengwei avatar chunchengwei commented on May 18, 2024

@blinkfox 在谷歌浏览器下没问题,但是在safari下就水平滚动条就拖拽不了。但是可以使用触控板双指水平移动代码块,类似于在手机上用手势拖拽代码块。

from hexo-theme-matery.

blinkfox avatar blinkfox commented on May 18, 2024

safari下的一个效果,它本来就是这样的。

from hexo-theme-matery.

chunchengwei avatar chunchengwei commented on May 18, 2024

safari下的一个效果,它本来就是这样的。

可以同时也添加水平拖拽的功能么?平时用鼠标,不能拖拽很不方便。

from hexo-theme-matery.

blinkfox avatar blinkfox commented on May 18, 2024

这个程序没啥问题,是safari浏览器的特殊功能,你可以去Mac设置项里面修改成“始终显示滚动条”的功能。具体方法你可以用搜索引擎搜一下。

from hexo-theme-matery.

chunchengwei avatar chunchengwei commented on May 18, 2024

image

可以显示出来滚动条,但是拖拽不了。而且已经打开了始终显示滚动条

from hexo-theme-matery.

blinkfox avatar blinkfox commented on May 18, 2024

那就没法了,safari这样搞的吧,那只能让代码折行,不出现滚动条就行了,你到matery.css文件中约124行的样式里面,加上一行white-space: pre-wrap !important;的折行样式即可,代码如下:

code[class*="language-"],
pre[class*="language-"] {
    color: #e8eaf6;
    white-space: pre-wrap !important;
}

from hexo-theme-matery.

chunchengwei avatar chunchengwei commented on May 18, 2024

好的👌

from hexo-theme-matery.

blinkfox avatar blinkfox commented on May 18, 2024

这个用折行的方式解决了,我就把这个issue关掉了哈。

from hexo-theme-matery.

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.